BluetoothConsentUIProtocol
public protocol BluetoothConsentUIProtocol
Bluetooth Consent UI Protocol.
-
Returns an instance of the class conforming to
BluetoothConsentUIProtocol
protocolDeclaration
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
badge
the badge requiring bluetooth authorization
completion
Completion 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
badge
the badge requiring bluetooth authorization
completion
Completion block for notifying the UsherSDK that the user acknowledged the error message.
-
Dismiss all UIs presented
Declaration
Swift
func dismiss()