How do I whitelist an activity for a UIActivityViewController and not a blacklist?

Most use cases UIActivityViewController

show how to exclude activity types, but they do not show how to specify only the types you want.

For example,

I want the displayed actions to show only emails and messages . The init method UIActivityViewController

has a parameter applicationActivities

, which is an array from UIActivity .

This means that passing an array UIActivity

and not nil will set up a whitelist. It seems that populating this array will achieve what I want. Is my guess correct? If so, what are the classes for email and messages .

Question:

How do I instantiate instances? Or, generally, how can I define a class for any of the standard operation types and instantiate them?

+3
ios swift uiactivityviewcontroller


source to share


No one has answered this question yet

Check out similar questions:

1264
How to check an active internet connection on iOS or macOS?
ten
Limiting the activity of UIActivityViewController extensions
nine
UIActivityViewController - only bind URL for specific activities
8
UIActivityViewController includes, not excludes, activity types
2
Quirk in UIActivityViewController Integration
2
UIActivityViewController get activity name in iOS
1
Save image to app album using UIActivityViewController
1
UIActivityViewController not showing inline activities
1
UIActivityViewController is empty when activity object is video ad url
0
Unknown objects of activity: ("<myclass: somehash>")



All Articles
Loading...
X
Show
Funny
Dev
Pics