public DownloadRssTask(BaseAndroidION ion, Context context, Action <Rss> onComplete, Action onFailure)
 {
     this.ion        = ion;
     this.context    = context;
     this.onComplete = onComplete;
     this.onFailure  = onFailure;
 }
 public AndroidLocationManager(BaseAndroidION ion)
 {
     this.ion          = ion;
     lastKnownLocation = new SimpleLocation()
     {
         altitude = ion.preferences.location.customElevation,
     };
     handler = new Handler(Looper.MainLooper);
     lastTimeLocationChanged = new DateTime(1, 1, 1);
 }
Example #3
0
        public AndroidConnectionManager(BaseAndroidION ion)
        {
            this.ion     = ion;
            this.context = ion.context;
            this.bm      = context.GetSystemService(Context.BluetoothService) as BluetoothManager;

            // Resolve the scan methods that we will need to perform scanning.
            if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
            {
                if (Permission.Granted == ContextCompat.CheckSelfPermission(context, Android.Manifest.Permission.AccessFineLocation))
                {
                    bleScanMethod = new Api21BleScanMethod(this);
                }
                else
                {
                    bleScanMethod = new Api18BleScanMethod(this);
                }
            }
            else
            {
                bleScanMethod = new Api18BleScanMethod(this);
            }
        }
Example #4
0
 public ToneAlarmAlert(IAlarm alarm, BaseAndroidION ion, Android.Net.Uri uri) : base(alarm)
 {
     this.ion = ion;
     this.uri = uri;
 }
Example #5
0
 public ToneAlarmAlert(IAlarm alarm, BaseAndroidION ion) : this(alarm, ion, RingtoneManager.GetDefaultUri(RingtoneType.Alarm))
 {
 }
 public VibrateAlarmAlert(IAlarm alarm, BaseAndroidION ion) : base(alarm)
 {
     this.ion = ion;
 }