LocationManager.RegisterGnssStatusCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterGnssStatusCallback(GnssStatus+Callback) |
Registers a GNSS status callback. |
RegisterGnssStatusCallback(GnssStatus+Callback, Handler) |
Registers a GNSS status callback. |
RegisterGnssStatusCallback(IExecutor, GnssStatus+Callback) |
Registers a GNSS status callback. |
RegisterGnssStatusCallback(GnssStatus+Callback)
Registers a GNSS status callback.
[Android.Runtime.Register("registerGnssStatusCallback", "(Landroid/location/GnssStatus$Callback;)Z", "GetRegisterGnssStatusCallback_Landroid_location_GnssStatus_Callback_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual bool RegisterGnssStatusCallback (Android.Locations.GnssStatus.Callback callback);
[<Android.Runtime.Register("registerGnssStatusCallback", "(Landroid/location/GnssStatus$Callback;)Z", "GetRegisterGnssStatusCallback_Landroid_location_GnssStatus_Callback_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member RegisterGnssStatusCallback : Android.Locations.GnssStatus.Callback -> bool
override this.RegisterGnssStatusCallback : Android.Locations.GnssStatus.Callback -> bool
Parameters
- callback
- GnssStatus.Callback
the callback to register
Returns
true
always
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RegisterGnssStatusCallback(GnssStatus+Callback, Handler)
Registers a GNSS status callback.
[Android.Runtime.Register("registerGnssStatusCallback", "(Landroid/location/GnssStatus$Callback;Landroid/os/Handler;)Z", "GetRegisterGnssStatusCallback_Landroid_location_GnssStatus_Callback_Landroid_os_Handler_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual bool RegisterGnssStatusCallback (Android.Locations.GnssStatus.Callback callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("registerGnssStatusCallback", "(Landroid/location/GnssStatus$Callback;Landroid/os/Handler;)Z", "GetRegisterGnssStatusCallback_Landroid_location_GnssStatus_Callback_Landroid_os_Handler_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member RegisterGnssStatusCallback : Android.Locations.GnssStatus.Callback * Android.OS.Handler -> bool
override this.RegisterGnssStatusCallback : Android.Locations.GnssStatus.Callback * Android.OS.Handler -> bool
Parameters
- callback
- GnssStatus.Callback
the callback to register
- handler
- Handler
Returns
true
always
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RegisterGnssStatusCallback(IExecutor, GnssStatus+Callback)
Registers a GNSS status callback.
[Android.Runtime.Register("registerGnssStatusCallback", "(Ljava/util/concurrent/Executor;Landroid/location/GnssStatus$Callback;)Z", "GetRegisterGnssStatusCallback_Ljava_util_concurrent_Executor_Landroid_location_GnssStatus_Callback_Handler", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual bool RegisterGnssStatusCallback (Java.Util.Concurrent.IExecutor executor, Android.Locations.GnssStatus.Callback callback);
[<Android.Runtime.Register("registerGnssStatusCallback", "(Ljava/util/concurrent/Executor;Landroid/location/GnssStatus$Callback;)Z", "GetRegisterGnssStatusCallback_Ljava_util_concurrent_Executor_Landroid_location_GnssStatus_Callback_Handler", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member RegisterGnssStatusCallback : Java.Util.Concurrent.IExecutor * Android.Locations.GnssStatus.Callback -> bool
override this.RegisterGnssStatusCallback : Java.Util.Concurrent.IExecutor * Android.Locations.GnssStatus.Callback -> bool
Parameters
- executor
- IExecutor
- callback
- GnssStatus.Callback
the callback to register
Returns
true
always
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.