![]() NSExtensionActivationSupportsWebPageWithMaxCount Include this key to indicate to the system and to other apps that your app supports web URLs. Include this key to indicate to the system and to other apps that your app supports text. Include this key to indicate to the system and to other apps that your app supports movie files. NSExtensionActivationSupportsMovieWithMaxCount Include this key to indicate to the system and to other apps that your app supports image files. NSExtensionActivationSupportsImageWithMaxCount Include this key to indicate to the system and to other apps that your app supports files in general. NSExtensionActivationSupportsFileWithMaxCount ![]() Include this key to indicate to the system and to other apps that your app supports a minimum number of attachments. NSExtensionActivationSupportsAttachmentsWithMinCount Include this key to indicate to the system and to other apps that your app supports a maximum number of attachments. NSExtensionActivationSupportsAttachmentsWithMaxCount The value for each key is an integer that specifies the maximum number of files of the corresponding data type that your extension can handle. The below table lists the keys that you can include in the dictionary associated with the NSExtensionActivationRule dictionary. We need to add the activation rule in order to share the data content from other apps to our app. ![]() We need to add the containerURL(forSecurityApplicationGroupIdentifier:) to Return the container directory associated with the specified security application group identifier. We must set up App-Groups in the section on signing and capabilities in order to share data between the extension and the host app. So, we need to change the deployment target to which our app supports otherwise our app will not be visible in the share sheet while we try to share any content.Īdd the group name to target share extension and host app After creation the share extension’s minimum deployment target will be the xcode latest version. The new controller and share extension ist will be created. The new target is seen in the target list. ![]() Because XCode creates a new Target with an associated scheme for the extension, this is necessary. File -> New -> Target -> Share Extension.Īfter creating the share extension target, the system asks you to activate the share scheme, simply choose Activate. In order to show our app we need to create share extension target. Share sheet will appear when we try to share any of the content from the other apps as like below.Īlright! To begin we will do some basic setup to show our app in the share sheet like above image. You will need a Share Extension when other apps want to share data with your app. ![]() In this, we will learn how to build share extensions and how to use them. How is Share Extension a ‘hack’? How do I integrate content into my app? You are at the right place already if you have questions on any of these topics.Īpple offers the Share Extension as a simple means of transferring content (such as files, photos, audio, screenshot, link and location) between apps, even though they are created by different developers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |