コード例 #1
0
 public GpsLocationService(Context context, ISettingWindowCloseListener settingWindowListener = null)
 {
     this.mContext = context;
     this.settingWindowListener   = settingWindowListener;
     this.sharedPreferencesHelper = new SharedPreferencesHelper(context);
     this.location = GetLocation();
 }
コード例 #2
0
        public static GpsLocationService GetServiceInstance(Context context, ISettingWindowCloseListener listener = null)
        {
            if (serviceInstance == null)
            {
                serviceInstance = new GpsLocationService(context, listener);
            }

            return(serviceInstance);
        }
コード例 #3
0
		public GpsLocationService(Context context, ISettingWindowCloseListener settingWindowListener) {
			this.mContext = context;
			this.settingWindowListener = settingWindowListener;
			this.sharedPreferencesHelper = new SharedPreferencesHelper(context);
			this.location = GetLocation();
		}