Instance Method

application(_:shouldAllowExtensionPointIdentifier:)

Asks the delegate to grant permission to use app extensions that are based on a specified extension point identifier.

Declaration

optional func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool

Parameters

application

Your shared app object.

extensionPointIdentifier

A constant identifying an extension point.

Return Value

false to disallow use of a specified app extension type, or true to allow use of the type.

Discussion

You can implement this method to reject a specified type of app extension, based on its extension point identifier, from use in your app. See Extension Point Identifier Constants in UIApplication.

If you do not implement this method, all app extension types are available for use in your app.

In iOS 8.0, the only type of app extension you can reject is the custom keyboard. For information on app extensions, see App Extension Programming Guide.

See Also

Disallowing Specified App Extension Types

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software