RemoteSessionCallbacks constructor

const RemoteSessionCallbacks({
  1. required void onMessage(
    1. SessionsMessage message
    ),
  2. required void onPermissionRequest(
    1. Map<String, dynamic> request,
    2. String requestId
    ),
  3. void onPermissionCancelled(
    1. String requestId,
    2. String? toolUseId
    )?,
  4. void onConnected()?,
  5. void onDisconnected()?,
  6. void onReconnecting()?,
  7. void onError(
    1. Object error
    )?,
})

Create callbacks for RemoteSessionManager.

Implementation

const RemoteSessionCallbacks({
  required this.onMessage,
  required this.onPermissionRequest,
  this.onPermissionCancelled,
  this.onConnected,
  this.onDisconnected,
  this.onReconnecting,
  this.onError,
});