Ejemplo n.º 1
0
 public static CameraUpdateInterop ToCameraUpdateInterop(this CameraUpdate cameraUpdate)
 {
     return(new CameraUpdateInterop
     {
         target = cameraUpdate.target.ToLatLongInterop(),
         elevation = cameraUpdate.targetElevation,
         elevationMode = cameraUpdate.targetElevationMode,
         indoorMapId = cameraUpdate.targetIndoorMapId,
         indoorMapFloorId = cameraUpdate.targetIndoorMapFloorId,
         distance = cameraUpdate.distance,
         tilt = cameraUpdate.tilt,
         bearing = cameraUpdate.bearing,
         modifyTarget = cameraUpdate.modifyTarget,
         modifyElevation = cameraUpdate.modifyElevation,
         modifyElevationMode = cameraUpdate.modifyElevationMode,
         modifyIndoor = cameraUpdate.modifyIndoor,
         modifyDistance = cameraUpdate.modifyDistance,
         modifyTilt = cameraUpdate.modifyTilt,
         modifyBearing = cameraUpdate.modifyBearing
     });
 }
Ejemplo n.º 2
0
        public void MoveTo(CameraUpdate cameraUpdate)
        {
            var cameraUpdateInterop = cameraUpdate.ToCameraUpdateInterop();

            NativeCameraApi_MoveCamera(NativePluginRunner.API, ref cameraUpdateInterop);
        }