authorizeService method

Future<BlueZAgentResponse> authorizeService(
  1. BlueZDevice device,
  2. BlueZUUID uuid
)

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.

Implementation

Future<BlueZAgentResponse> authorizeService(
    BlueZDevice device, BlueZUUID uuid) async {
  return BlueZAgentResponse.rejected();
}