Share via


PhoneStateListener コンストラクター

定義

オーバーロード

PhoneStateListener()

既定のサブスクリプションを使用して、Phone の PhoneStateListener を作成します。

PhoneStateListener(IExecutor)

指定した Executor を使用して Phone の PhoneStateListener を作成する

PhoneStateListener(IntPtr, JniHandleOwnership)

JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

PhoneStateListener()

既定のサブスクリプションを使用して、Phone の PhoneStateListener を作成します。

[Android.Runtime.Register(".ctor", "()V", "")]
public PhoneStateListener ();
属性

注釈

既定のサブスクリプションを使用して、Phone の PhoneStateListener を作成します。 このクラスには、Null を返さない Looper.myLooper() が必要です。

の Java ドキュメント android.telephony.PhoneStateListener.PhoneStateListener()

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

適用対象

PhoneStateListener(IExecutor)

指定した Executor を使用して Phone の PhoneStateListener を作成する

[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "", ApiSince=29)]
public PhoneStateListener (Java.Util.Concurrent.IExecutor executor);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "", ApiSince=29)>]
new Android.Telephony.PhoneStateListener : Java.Util.Concurrent.IExecutor -> Android.Telephony.PhoneStateListener

パラメーター

executor
IExecutor

PhoneStateListener のコールバックを実行する null 以外の Executor。

属性

注釈

指定した Executor を使用して Phone の PhoneStateListener を作成する

必要なコールバックを処理するために、指定した Executor を使用して PhoneStateListener を作成します。 Executor は null にすることはできません。

の Java ドキュメント android.telephony.PhoneStateListener.PhoneStateListener(java.util.concurrent.Executor)

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

適用対象

PhoneStateListener(IntPtr, JniHandleOwnership)

JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

protected PhoneStateListener (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Telephony.PhoneStateListener : nativeint * Android.Runtime.JniHandleOwnership -> Android.Telephony.PhoneStateListener

パラメーター

javaReference
IntPtr

nativeint

IntPtrJava Native Interface (JNI) オブジェクト参照を含む 。

transfer
JniHandleOwnership

処理方法を示す 。JniHandleOwnershipjavaReference

注釈

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

適用対象