PhoneStateListener Constructors

Definition

Overloads

PhoneStateListener()
Obsolete.

Create a PhoneStateListener for the Phone with the default subscription.

PhoneStateListener(IExecutor)
Obsolete.

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()

Caution

deprecated

Create a PhoneStateListener for the Phone with the default subscription.

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

Remarks

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)

Caution

deprecated

Create a PhoneStateListener for the Phone using the specified Executor

[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "", ApiSince=29)]
[System.Obsolete("deprecated")]
public PhoneStateListener (Java.Util.Concurrent.IExecutor executor);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "", ApiSince=29)>]
[<System.Obsolete("deprecated")>]
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

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

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