AirshipPermissionDelegate

@objc(UAAirshipPermissionDelegate)
public protocol AirshipPermissionDelegate

Permissions manager delegate. Allows for extending permission gathering.

  • Called when a permission needs to be checked.

    Declaration

    Swift

    @objc
    @MainActor
    func checkPermissionStatus() async -> AirshipPermissionStatus

    Return Value

    the permission status.

  • requestPermission() Asynchronous

    Called when a permission should be requested.

    Note

    A permission might be already granted when this method is called.

    Declaration

    Swift

    @objc
    @MainActor
    func requestPermission() async -> AirshipPermissionStatus

    Return Value

    the permission status.