LocationManager.AddGpsStatusListener(GpsStatus+IListener) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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)
.
이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.