Language

LocationManager.RequestSingleUpdate メソッド

定義

オーバーロード

名前 説明
RequestSingleUpdate(String, PendingIntent)

名前付きプロバイダーと保留中の意図を使用して、1 つの場所の更新に登録します。

RequestSingleUpdate(String, ILocationListener, Looper)

名前付きプロバイダーとコールバックを使用して、1 つの場所の更新に登録します。

RequestSingleUpdate(Criteria, PendingIntent)

条件と保留中の意図を使用して、1 つの場所の更新に登録します。

RequestSingleUpdate(Criteria, ILocationListener, Looper)

抽出条件とコールバックを使用して、1 つの場所の更新に登録します。

RequestSingleUpdate(String, PendingIntent)

名前付きプロバイダーと保留中の意図を使用して、1 つの場所の更新に登録します。

[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 の場合

適切なアクセス許可がない場合

注釈

名前付きプロバイダーと保留中の意図を使用して、1 つの場所の更新に登録します。

この方法の使用方法の詳細については、 #requestLocationUpdates(long, float, Criteria, PendingIntent) を参照してください。

このメンバーは非推奨です。 代わりに #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 使用してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

RequestSingleUpdate(String, ILocationListener, Looper)

名前付きプロバイダーとコールバックを使用して、1 つの場所の更新に登録します。

[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 の場合

適切なアクセス許可がない場合

注釈

名前付きプロバイダーとコールバックを使用して、1 つの場所の更新に登録します。

この方法の使用方法の詳細については、 #requestLocationUpdates(String, long, float, LocationListener, Looper) を参照してください。

このメンバーは非推奨です。 代わりに #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 使用してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

RequestSingleUpdate(Criteria, PendingIntent)

条件と保留中の意図を使用して、1 つの場所の更新に登録します。

[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 の場合

適切なアクセス許可がない場合

注釈

条件と保留中の意図を使用して、1 つの場所の更新に登録します。

注: Android KitKat 以降、条件要求では常に #FUSED_PROVIDERが使用されます。

この方法の使用方法の詳細については、 #requestLocationUpdates(long, float, Criteria, PendingIntent) を参照してください。

このメンバーは非推奨です。 代わりに #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 使用してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

RequestSingleUpdate(Criteria, ILocationListener, Looper)

抽出条件とコールバックを使用して、1 つの場所の更新に登録します。

[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

属性

例外

条件が null の場合

リスナーが null の場合

適切なアクセス許可がない場合

注釈

抽出条件とコールバックを使用して、1 つの場所の更新に登録します。

注: Android KitKat 以降、条件要求では常に #FUSED_PROVIDERが使用されます。

この方法の使用方法の詳細については、 #requestLocationUpdates(long, float, Criteria, PendingIntent) を参照してください。

このメンバーは非推奨です。 代わりに #getCurrentLocation(String, CancellationSignal, Executor, Consumer) 使用してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象