getCamera static method

Camera? getCamera(
  1. CameraPosition position,
  2. CameraOwner owner
)

Get camera instance for the owner (only works if you own it)

Implementation

static Camera? getCamera(CameraPosition position, CameraOwner owner) {
  // Check ownership
  if (!_ownershipManager.checkOwnership(position, owner)) {
    SdkLogger.info(
      'CameraOwnershipHelper',
      'getCamera',
      'Camera access denied: ${owner.id} does not own camera at $position',
    );
    return null;
  }

  return Camera.atPosition(position);
}