SubscriptionManager.SetDeviceToDeviceStatusSharingPreference Method
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.
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.
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.