NetworkRequest.Builder.SetSubscriptionIds(ICollection<Integer>) 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.
Sets the required subscription identifiers.
[Android.Runtime.Register("setSubscriptionIds", "(Ljava/util/Set;)Landroid/net/NetworkRequest$Builder;", "GetSetSubscriptionIds_Ljava_util_Set_Handler", ApiSince=35)]
public virtual Android.Net.NetworkRequest.Builder SetSubscriptionIds(System.Collections.Generic.ICollection<Java.Lang.Integer> subIds);
[<Android.Runtime.Register("setSubscriptionIds", "(Ljava/util/Set;)Landroid/net/NetworkRequest$Builder;", "GetSetSubscriptionIds_Ljava_util_Set_Handler", ApiSince=35)>]
abstract member SetSubscriptionIds : System.Collections.Generic.ICollection<Java.Lang.Integer> -> Android.Net.NetworkRequest.Builder
override this.SetSubscriptionIds : System.Collections.Generic.ICollection<Java.Lang.Integer> -> Android.Net.NetworkRequest.Builder
Parameters
- subIds
- ICollection<Integer>
A non-null set of required subscription IDs. An empty set matches all networks, including those without a subscription ID.
Returns
This builder.
- Attributes
Remarks
Registering a request with a non-empty subscription-ID set requires the NETWORK_FACTORY permission.
Java documentation for android.net.NetworkRequest.Builder.setSubscriptionIds(java.util.Set).