SimPhonebookContract.SimRecords.GetContentUri(Int32, Int32) 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.
Returns the content Uri for the specified elementary file on the specified SIM.
[Android.Runtime.Register("getContentUri", "(II)Landroid/net/Uri;", "", ApiSince=31)]
public static Android.Net.Uri GetContentUri (int subscriptionId, int efType);
[<Android.Runtime.Register("getContentUri", "(II)Landroid/net/Uri;", "", ApiSince=31)>]
static member GetContentUri : int * int -> Android.Net.Uri
Parameters
- subscriptionId
- Int32
the subscriptionId of the SIM card that this Uri will reference
- efType
- Int32
the elementary file on the SIM that this Uri will reference
Returns
- Attributes
Remarks
Returns the content Uri for the specified elementary file on the specified SIM.
When queried this Uri will return all of the contact records in the specified elementary file on the specified SIM. The available subscriptionIds and efTypes can be discovered by querying ElementaryFiles#CONTENT_URI
.
If a SIM with the provided subscription ID does not exist or the SIM with the provided subscription ID doesn't support the specified entity file then all operations will throw an IllegalArgumentException
.
Java documentation for android.provider.SimPhonebookContract.SimRecords.getContentUri(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.