Freigeben über


PhoneStateListener Constructors

Definition

Overloads

PhoneStateListener()

Create a PhoneStateListener for the Phone with the default subscription.

PhoneStateListener(IExecutor)

Create a PhoneStateListener for the Phone using the specified Executor

PhoneStateListener(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PhoneStateListener()

Create a PhoneStateListener for the Phone with the default subscription.

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

Remarks

Create a PhoneStateListener for the Phone with the default subscription. This class requires Looper.myLooper() not return null.

Java documentation for android.telephony.PhoneStateListener.PhoneStateListener().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PhoneStateListener(IExecutor)

Create a PhoneStateListener for the Phone using the specified Executor

[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

Parameters

executor
IExecutor

a non-null Executor that will execute callbacks for the PhoneStateListener.

Attributes

Remarks

Create a PhoneStateListener for the Phone using the specified Executor

Create a PhoneStateListener with a specified Executor for handling necessary callbacks. The Executor must not be null.

Java documentation for android.telephony.PhoneStateListener.PhoneStateListener(java.util.concurrent.Executor).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PhoneStateListener(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to