LocationManager.RequestSingleUpdate 메서드

정의

오버로드

RequestSingleUpdate(String, PendingIntent)

명명된 공급자 및 보류 중인 의도를 사용하여 단일 위치 업데이트를 등록합니다.

RequestSingleUpdate(String, ILocationListener, Looper)

명명된 공급자 및 콜백을 사용하여 단일 위치 업데이트를 등록합니다.

RequestSingleUpdate(Criteria, PendingIntent)

조건 및 보류 중인 의도를 사용하여 단일 위치 업데이트를 등록합니다.

RequestSingleUpdate(Criteria, ILocationListener, Looper)

조건 및 콜백을 사용하여 단일 위치 업데이트를 등록합니다.

RequestSingleUpdate(String, PendingIntent)

명명된 공급자 및 보류 중인 의도를 사용하여 단일 위치 업데이트를 등록합니다.

[Android.Runtime.Register("requestSingleUpdate", "(Ljava/lang/String;Landroid/app/PendingIntent;)V", "GetRequestSingleUpdate_Ljava_lang_String_Landroid_app_PendingIntent_Handler")]
public virtual void RequestSingleUpdate (string provider, Android.App.PendingIntent pendingIntent);
[<Android.Runtime.Register("requestSingleUpdate", "(Ljava/lang/String;Landroid/app/PendingIntent;)V", "GetRequestSingleUpdate_Ljava_lang_String_Landroid_app_PendingIntent_Handler")>]
abstract member RequestSingleUpdate : string * Android.App.PendingIntent -> unit
override this.RequestSingleUpdate : string * Android.App.PendingIntent -> unit

매개 변수

provider
String

에 나열된 공급자 #getAllProviders()

pendingIntent
PendingIntent

위치 업데이트를 보낼 보류 중인 의도

특성

예외

공급자가 null이거나 존재하지 않는 경우

의도가 null이면

적절한 권한이 없으면

설명

명명된 공급자 및 보류 중인 의도를 사용하여 단일 위치 업데이트를 등록합니다.

이 메서드를 사용하는 방법에 대한 자세한 내용은 를 참조하세요 #requestLocationUpdates(long, float, Criteria, PendingIntent) .

이 멤버는 더 이상 사용되지 않습니다. 대신 극단적인 배터리 소모의 위험을 수행 하지 않기 때문에 사용 #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 합니다.

에 대한 Java 설명서입니다 android.location.LocationManager.requestSingleUpdate(java.lang.String, android.app.PendingIntent).

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

적용 대상

RequestSingleUpdate(String, ILocationListener, Looper)

명명된 공급자 및 콜백을 사용하여 단일 위치 업데이트를 등록합니다.

[Android.Runtime.Register("requestSingleUpdate", "(Ljava/lang/String;Landroid/location/LocationListener;Landroid/os/Looper;)V", "GetRequestSingleUpdate_Ljava_lang_String_Landroid_location_LocationListener_Landroid_os_Looper_Handler")]
public virtual void RequestSingleUpdate (string provider, Android.Locations.ILocationListener listener, Android.OS.Looper? looper);
[<Android.Runtime.Register("requestSingleUpdate", "(Ljava/lang/String;Landroid/location/LocationListener;Landroid/os/Looper;)V", "GetRequestSingleUpdate_Ljava_lang_String_Landroid_location_LocationListener_Landroid_os_Looper_Handler")>]
abstract member RequestSingleUpdate : string * Android.Locations.ILocationListener * Android.OS.Looper -> unit
override this.RequestSingleUpdate : string * Android.Locations.ILocationListener * Android.OS.Looper -> unit

매개 변수

provider
String

에 나열된 공급자 #getAllProviders()

listener
ILocationListener

위치 업데이트를 받을 수신기

looper
Looper

수신기 콜백을 처리하는 루퍼 또는 호출 스레드의 루퍼를 사용하는 null

특성

예외

공급자가 null이거나 존재하지 않는 경우

수신기가 null이면

적절한 권한이 없으면

설명

명명된 공급자 및 콜백을 사용하여 단일 위치 업데이트를 등록합니다.

이 메서드를 사용하는 방법에 대한 자세한 내용은 를 참조하세요 #requestLocationUpdates(String, long, float, LocationListener, Looper) .

이 멤버는 더 이상 사용되지 않습니다. 대신 극단적인 배터리 소모의 위험을 수행 하지 않기 때문에 사용 #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 합니다.

에 대한 Java 설명서입니다 android.location.LocationManager.requestSingleUpdate(java.lang.String, android.location.LocationListener, android.os.Looper).

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

적용 대상

RequestSingleUpdate(Criteria, PendingIntent)

조건 및 보류 중인 의도를 사용하여 단일 위치 업데이트를 등록합니다.

[Android.Runtime.Register("requestSingleUpdate", "(Landroid/location/Criteria;Landroid/app/PendingIntent;)V", "GetRequestSingleUpdate_Landroid_location_Criteria_Landroid_app_PendingIntent_Handler")]
public virtual void RequestSingleUpdate (Android.Locations.Criteria criteria, Android.App.PendingIntent pendingIntent);
[<Android.Runtime.Register("requestSingleUpdate", "(Landroid/location/Criteria;Landroid/app/PendingIntent;)V", "GetRequestSingleUpdate_Landroid_location_Criteria_Landroid_app_PendingIntent_Handler")>]
abstract member RequestSingleUpdate : Android.Locations.Criteria * Android.App.PendingIntent -> unit
override this.RequestSingleUpdate : Android.Locations.Criteria * Android.App.PendingIntent -> unit

매개 변수

criteria
Criteria

에는 위치 업데이트에 적합한 공급자를 선택하는 매개 변수가 포함되어 있습니다.

pendingIntent
PendingIntent

위치 업데이트를 보낼 보류 중인 의도

특성

예외

공급자가 null이거나 존재하지 않는 경우

의도가 null이면

적절한 권한이 없으면

설명

조건 및 보류 중인 의도를 사용하여 단일 위치 업데이트를 등록합니다.

참고: Android KitKat부터 조건 요청은 항상 를 사용합니다 #FUSED_PROVIDER.

이 메서드를 사용하는 방법에 대한 자세한 내용은 를 참조하세요 #requestLocationUpdates(long, float, Criteria, PendingIntent) .

이 멤버는 더 이상 사용되지 않습니다. 대신 극단적인 배터리 소모의 위험을 수행 하지 않기 때문에 사용 #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 합니다.

에 대한 Java 설명서입니다 android.location.LocationManager.requestSingleUpdate(android.location.Criteria, android.app.PendingIntent).

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

적용 대상

RequestSingleUpdate(Criteria, ILocationListener, Looper)

조건 및 콜백을 사용하여 단일 위치 업데이트를 등록합니다.

[Android.Runtime.Register("requestSingleUpdate", "(Landroid/location/Criteria;Landroid/location/LocationListener;Landroid/os/Looper;)V", "GetRequestSingleUpdate_Landroid_location_Criteria_Landroid_location_LocationListener_Landroid_os_Looper_Handler")]
public virtual void RequestSingleUpdate (Android.Locations.Criteria criteria, Android.Locations.ILocationListener listener, Android.OS.Looper? looper);
[<Android.Runtime.Register("requestSingleUpdate", "(Landroid/location/Criteria;Landroid/location/LocationListener;Landroid/os/Looper;)V", "GetRequestSingleUpdate_Landroid_location_Criteria_Landroid_location_LocationListener_Landroid_os_Looper_Handler")>]
abstract member RequestSingleUpdate : Android.Locations.Criteria * Android.Locations.ILocationListener * Android.OS.Looper -> unit
override this.RequestSingleUpdate : Android.Locations.Criteria * Android.Locations.ILocationListener * Android.OS.Looper -> unit

매개 변수

criteria
Criteria

에는 위치 업데이트에 적합한 공급자를 선택하는 매개 변수가 포함되어 있습니다.

listener
ILocationListener

위치 업데이트를 받을 수신기

looper
Looper

수신기 콜백을 처리하는 루퍼 또는 호출 스레드의 루퍼를 사용하는 null

특성

예외

criteria가 null이면

수신기가 null이면

적절한 권한이 없으면

설명

조건 및 콜백을 사용하여 단일 위치 업데이트를 등록합니다.

참고: Android KitKat부터 조건 요청은 항상 를 사용합니다 #FUSED_PROVIDER.

이 메서드를 사용하는 방법에 대한 자세한 내용은 를 참조하세요 #requestLocationUpdates(long, float, Criteria, PendingIntent) .

이 멤버는 더 이상 사용되지 않습니다. 대신 극단적인 배터리 소모의 위험을 수행 하지 않기 때문에 사용 #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 합니다.

에 대한 Java 설명서입니다 android.location.LocationManager.requestSingleUpdate(android.location.Criteria, android.location.LocationListener, android.os.Looper).

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

적용 대상