BlueZAgent class abstract

Agent object for a client to register.

Constructors

BlueZAgent()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorizeService(BlueZDevice device, BlueZUUID uuid) Future<BlueZAgentResponse>
Called when confirmation is required when accessing the service uuid on device. Return BlueZAgentResponse.success is this authorization should occur, and BlueZAgentResponse.rejected if it should not.
cancel() Future<void>
Called when a request is canceled due to lack of response from the agent.
displayPasskey(BlueZDevice device, int passkey, int entered) Future<void>
Called when passkey is required to be displayed when authenticating with device.
displayPinCode(BlueZDevice device, String pinCode) Future<BlueZAgentResponse>
Called when pinCode is required to be displayed when authenticating with device. Return BlueZAgentResponse.success is this PIN is confirmed as correct, and BlueZAgentResponse.rejected if it is not.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() Future<void>
Called when this agent is unregistered.
requestAuthorization(BlueZDevice device) Future<BlueZAgentResponse>
Called when confirmation is required when authenticating with device. Return BlueZAgentResponse.success is this authentication should occur, and BlueZAgentResponse.rejected if it should not.
requestConfirmation(BlueZDevice device, int passkey) Future<BlueZAgentResponse>
Called when a passkey is required to be confirmed when authenticating with device. Return BlueZAgentResponse.success is this passkey is confirmed as correct, and BlueZAgentResponse.rejected if it is not.
requestPasskey(BlueZDevice device) Future<BlueZAgentPasskeyResponse>
Called when a passkey is required for authentication with device. Return BlueZAgentPasskeyResponse.success with the requested passkey.
requestPinCode(BlueZDevice device) Future<BlueZAgentPinCodeResponse>
Called when a PIN code is required for authentication with device. Return BlueZAgentPinCodeResponse.success with the requested PIN code.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited