Freigeben über


SubscriptionManager.SetDeviceToDeviceStatusSharingPreference Method

Definition

Set the device to device status sharing user preference for a subscription id.

[Android.Runtime.Register("setDeviceToDeviceStatusSharingPreference", "(II)V", "GetSetDeviceToDeviceStatusSharingPreference_IIHandler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual void SetDeviceToDeviceStatusSharingPreference (int subscriptionId, int sharing);
[<Android.Runtime.Register("setDeviceToDeviceStatusSharingPreference", "(II)V", "GetSetDeviceToDeviceStatusSharingPreference_IIHandler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member SetDeviceToDeviceStatusSharingPreference : int * int -> unit
override this.SetDeviceToDeviceStatusSharingPreference : int * int -> unit

Parameters

subscriptionId
Int32

The subscription id.

sharing
Int32

The status sharing preference.

Attributes

Remarks

Set the device to device status sharing user preference for a subscription id. The setting app uses this method to indicate with whom they wish to share device to device status information.

Java documentation for android.telephony.SubscriptionManager.setDeviceToDeviceStatusSharingPreference(int, int).

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