LocationManager.AddGpsStatusListener(GpsStatus+IListener) 메서드

정의

GPS 상태 수신기를 추가합니다.

[Android.Runtime.Register("addGpsStatusListener", "(Landroid/location/GpsStatus$Listener;)Z", "GetAddGpsStatusListener_Landroid_location_GpsStatus_Listener_Handler")]
[Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")]
public virtual bool AddGpsStatusListener (Android.Locations.GpsStatus.IListener? listener);
[<Android.Runtime.Register("addGpsStatusListener", "(Landroid/location/GpsStatus$Listener;)Z", "GetAddGpsStatusListener_Landroid_location_GpsStatus_Listener_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.ACCESS_FINE_LOCATION")>]
abstract member AddGpsStatusListener : Android.Locations.GpsStatus.IListener -> bool
override this.AddGpsStatusListener : Android.Locations.GpsStatus.IListener -> bool

매개 변수

listener
GpsStatus.IListener

등록할 GPS 상태 수신기 개체

반환

수신기가 성공적으로 추가된 경우 true

특성

예외

ACCESS_FINE_LOCATION 권한이 없는 경우

설명

에 대한 Java 설명서입니다 android.location.LocationManager.addGpsStatusListener(android.location.Listener).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상