cameraState property

Uint8List get cameraState

Saves the current state of the camera into a binary format.

Returns

  • The binary representation of the camera's current state.

Throws

  • An exception if it fails.

Implementation

Uint8List get cameraState {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapCamera',
    'saveCameraState',
  );

  return base64Decode(resultString['result']);
}
set cameraState (Uint8List state)

Restores the camera's state from a previously saved binary format.

Parameters

  • IN state The binary representation of the camera's current state.

Throws

  • An exception if it fails.

Implementation

set cameraState(final Uint8List state) {
  objectMethod(
    _pointerId,
    'MapCamera',
    'restoreCameraState',
    args: String.fromCharCodes(state),
  );
}