requestConfirmation method

Future<BlueZAgentResponse> requestConfirmation(
  1. BlueZDevice device,
  2. int passkey
)

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.

Implementation

Future<BlueZAgentResponse> requestConfirmation(
    BlueZDevice device, int passkey) async {
  return BlueZAgentResponse.rejected();
}