Crashalot
Crashalot

Reputation: 34503

iOS 8: options for presenting Action Extensions to users?

After reading the Apple documentation on extensions, it's not clear how Action Extensions get presented to users. The docs mention the Bing translate use case where actions are presented after users tap the Share button. But what if an app, say a chat app, doesn't have a share button? Another example is if the calling app (not the containing app of the extension) presents an option to invoke an Action Extension.

Are these the only two options? In other words, if an app lacks a Share button and doesn't integrate your extension, there's no way to present an Action Extension?

Upvotes: 1

Views: 2166

Answers (3)

Ashvin
Ashvin

Reputation: 8997

May be help you. Apple provides sample code for ImageInverter: Creating Action Extensions

There are concept for Action Extensions.

Upvotes: 1

Adam Zielinski
Adam Zielinski

Reputation: 401

Extensions are presented as a possible in a UIActivityViewController. The host app provides the UIActivityViewController with the data context. If your extension adheres to this context, it will be available in the list.

If someone writes an app without the UIActivityViewController then they won't be able to use your extension.

Upvotes: 1

Ian Baird
Ian Baird

Reputation: 718

That is correct. Actions are always initiated by the user, and always from system-provided UI.

Upvotes: 3

Related Questions