BluetoothConsentUIProtocol
public protocol BluetoothConsentUIProtocol
Bluetooth Consent UI Protocol.
-
Returns an instance of the class conforming to
BluetoothConsentUIProtocolprotocolDeclaration
Swift
static func instance() -> BluetoothConsentUIProtocol? -
Prompts the user to allow authorization for bluetooth access
Declaration
Swift
func promptForBluetoothAuthorizationConsent(_ badge: Badge, completion: @escaping (_ granted: Bool) -> Void)Parameters
badgethe badge requiring bluetooth authorization
completionCompletion block for passing user’s response back to the UsherSDK
-
Inform user that bluetooth is not authorized and that the user needs to enable it from settings to use functionalities of the badge.
Declaration
Swift
func informUserThatBluetoothIsRequired(forBadge badge: Badge, completion: @escaping () -> Void)Parameters
badgethe badge requiring bluetooth authorization
completionCompletion block for notifying the UsherSDK that the user acknowledged the error message.
-
Dismiss all UIs presented
Declaration
Swift
func dismiss()
BluetoothConsentUIProtocol Protocol Reference