public void Start() { Gimbal.Start(); CommunicationManager.Instance.StartReceivingCommunications(); Gimbal.EnablePushMessaging(true); }
void SetApiKey() { #if UNITY_IPHONE Gimbal.SetApiKey(iosApiKey); #elif UNITY_ANDROID Gimbal.SetApiKey(androidApiKey); #endif }
public MavsdkSystem(string host, int port) { _channel = new Channel(host, port, ChannelCredentials.Insecure); Action = new Action(_channel); Calibration = new Calibration(_channel); Camera = new Camera(_channel); Core = new Core(_channel); Gimbal = new Gimbal(_channel); Info = new Info(_channel); Mission = new Mission(_channel); Offboard = new Offboard(_channel); Param = new Param(_channel); Telemetry = new Telemetry(_channel); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; if (!IsLocationPermissionEnabled()) { ActivityCompat.RequestPermissions(this, new string[] { Manifest.Permission.AccessFineLocation, Manifest.Permission.AccessCoarseLocation }, LOCATION_PERMISSION_REQUEST_CODE); } Gimbal.SetApiKey(Application, "5fba002a-5a07-424e-8fa2-decf01fa96d3"); IsPlayServicesAvailable(); CreateNotificationChannel(); base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); var dict = NSDictionary.FromObjectAndKey((NSString)"MANAGE_PERMISSIONS", NSNumber.FromBoolean(false)); Gimbal.SetAPIKey("5fba002a-5a07-424e-8fa2-decf01fa96d3", dict); if (options != null && options.ContainsKey(UIApplication.LaunchOptionsRemoteNotificationKey)) { ProcessRemoteNotification(options[UIApplication.LaunchOptionsRemoteNotificationKey] as NSDictionary); } if (options != null && options.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey)) { ProcessLocalNotification(options[UIApplication.LaunchOptionsLocationKey] as UILocalNotification, UIApplication.SharedApplication.ApplicationState); } RegisterForNotifications(app); return(base.FinishedLaunching(app, options)); }
public void StartPlaceManager() { Gimbal.StartPlaceManager(); isListeningForPlaces = false; }
public void StopBeaconManager() { Gimbal.StopBeaconManager(); isListeningForBeacons = false; }
public void StartBeaconManager() { Gimbal.StartBeaconManager(); isListeningForBeacons = true; }
public bool IsMonitoring() { return(Gimbal.IsMoitoring()); }
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken) { Gimbal.SetPushDeviceToken(deviceToken); }
public void Stop() { Gimbal.Stop(); }
public void Stop() { Gimbal.Stop(); PlaceManager.Instance.RemoveListener(placeEventListener); CommunicationManager.Instance.RemoveListener(communicationListener); }
private void Deserialize(JSONNode node) { rssi = node["RSSI"].AsInt; beacon = new Beacon(node["beacon"]); date = Gimbal.ConvertJsonDate(node["date"].Value); }
private void Start() { currentGimbal = Gimbal.regular; distance = transform.position - regularGimbal.position; }
public void StopPlaceManager() { Gimbal.StopPlaceManager(); isListeningForPlaces = true; }
private void Deserialize(JSONNode node) { place = new Place(node["place"]); arrivalDate = Gimbal.ConvertJsonDate(node["arrivalDate"].Value); }
public void Start() { Gimbal.Start(); }