Udostępnij za pośrednictwem


SubscriptionManager.SetDeviceToDeviceStatusSharingContacts Method

Definition

Set the list of contacts that allow device to device status sharing for a subscription id.

[Android.Runtime.Register("setDeviceToDeviceStatusSharingContacts", "(ILjava/util/List;)V", "GetSetDeviceToDeviceStatusSharingContacts_ILjava_util_List_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual void SetDeviceToDeviceStatusSharingContacts (int subscriptionId, System.Collections.Generic.IList<Android.Net.Uri> contacts);
[<Android.Runtime.Register("setDeviceToDeviceStatusSharingContacts", "(ILjava/util/List;)V", "GetSetDeviceToDeviceStatusSharingContacts_ILjava_util_List_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member SetDeviceToDeviceStatusSharingContacts : int * System.Collections.Generic.IList<Android.Net.Uri> -> unit
override this.SetDeviceToDeviceStatusSharingContacts : int * System.Collections.Generic.IList<Android.Net.Uri> -> unit

Parameters

subscriptionId
Int32

The subscription id.

contacts
IList<Uri>

The list of contacts that allow device to device status sharing.

Attributes

Remarks

Set the list of contacts that allow device to device status sharing 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.setDeviceToDeviceStatusSharingContacts(int, java.util.List<android.net.Uri>).

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