TelephonyManager.CallStateForSubscription Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve the call state for a specific subscription that was specified when this TelephonyManager instance was created.
public virtual int CallStateForSubscription { [Android.Runtime.Register("getCallStateForSubscription", "()I", "GetGetCallStateForSubscriptionHandler", ApiSince=31)] [Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")] get; }
[<get: Android.Runtime.Register("getCallStateForSubscription", "()I", "GetGetCallStateForSubscriptionHandler", ApiSince=31)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_PHONE_STATE")>]
member this.CallStateForSubscription : int
Property Value
The call state of the subscription associated with this TelephonyManager instance.
- Attributes
Remarks
Retrieve the call state for a specific subscription that was specified when this TelephonyManager instance was created.
Requires Permission: android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE
or that the calling application has carrier privileges (see #hasCarrierPrivileges
).
Java documentation for android.telephony.TelephonyManager.getCallStateForSubscription()
.
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.