/**@class android.provider.ContactsContract.CommonDataKinds.Phone implements android.provider.ContactsContract.DataColumnsWithJoins implements android.provider.ContactsContract.CommonDataKinds.CommonColumns implements android.provider.ContactsContract.ContactCounts @extends java.lang.Object <p> A data kind representing a telephone number. </p> <p> You can use all columns defined for {@link android.provider.ContactsContract.Data} as well as the following aliases. </p> <h2>Column aliases</h2> <table class="jd-sumtable"> <tr> <th>Type</th> <th>Alias</th><th colspan='2'>Data column</th> </tr> <tr> <td>String</td> <td>{@link #NUMBER}</td> <td>{@link #DATA1}</td> <td></td> </tr> <tr> <td>int</td> <td>{@link #TYPE}</td> <td>{@link #DATA2}</td> <td>Allowed values are: <p> <ul> <li>{@link #TYPE_CUSTOM}. Put the actual type in {@link #LABEL}.</li> <li>{@link #TYPE_HOME}</li> <li>{@link #TYPE_MOBILE}</li> <li>{@link #TYPE_WORK}</li> <li>{@link #TYPE_FAX_WORK}</li> <li>{@link #TYPE_FAX_HOME}</li> <li>{@link #TYPE_PAGER}</li> <li>{@link #TYPE_OTHER}</li> <li>{@link #TYPE_CALLBACK}</li> <li>{@link #TYPE_CAR}</li> <li>{@link #TYPE_COMPANY_MAIN}</li> <li>{@link #TYPE_ISDN}</li> <li>{@link #TYPE_MAIN}</li> <li>{@link #TYPE_OTHER_FAX}</li> <li>{@link #TYPE_RADIO}</li> <li>{@link #TYPE_TELEX}</li> <li>{@link #TYPE_TTY_TDD}</li> <li>{@link #TYPE_WORK_MOBILE}</li> <li>{@link #TYPE_WORK_PAGER}</li> <li>{@link #TYPE_ASSISTANT}</li> <li>{@link #TYPE_MMS}</li> </ul> </p> </td> </tr> <tr> <td>String</td> <td>{@link #LABEL}</td> <td>{@link #DATA3}</td> <td></td> </tr> </table> */ var Phone = { /**MIME type used when storing this in data table. */ CONTENT_ITEM_TYPE : "vnd.android.cursor.item/phone_v2", /** The MIME type of {@link #CONTENT_URI} providing a directory of phones. */ CONTENT_TYPE : "vnd.android.cursor.dir/phone_v2", /** The content:// style URI for all data records of the {@link #CONTENT_ITEM_TYPE} MIME type, combined with the associated raw contact and aggregate contact data. */ CONTENT_URI : "null", /** URI used for getting all contacts from primary and managed profile. It supports the same semantics as {@link #CONTENT_URI} and returns the same columns. If the device has no corp profile that is linked to the current profile, it behaves in the exact same way as {@link #CONTENT_URI}. If there is a corp profile linked to the current profile, it will merge corp profile and current profile's results and return @hide */ ENTERPRISE_CONTENT_URI : "null", /** <p>The content:// style URL for phone lookup using a filter. The filter returns records of MIME type {@link #CONTENT_ITEM_TYPE}. The filter is applied to display names as well as phone numbers. The filter argument should be passed as an additional path segment after this URI. <p class="caution"><b>Caution: </b>As of January 7, 2019, this field no longer sorts results based on contacts frequency. For more information, see the <a href="/guide/topics/providers/contacts-provider#ObsoleteData">Contacts Provider</a> page. */ CONTENT_FILTER_URI : "null", /** <p>It supports the similar semantics as {@link #CONTENT_FILTER_URI} and returns the same columns. This URI requires {@link android.provider.ContactsContract#DIRECTORY_PARAM_KEY} in parameters, otherwise it will throw IllegalArgumentException. <p class="caution"><b>Caution: </b>As of January 7, 2019, this field no longer sorts results based on contacts frequency. For more information, see the <a href="/guide/topics/providers/contacts-provider#ObsoleteData">Contacts Provider</a> page. */ ENTERPRISE_CONTENT_FILTER_URI : "null", /** A boolean query parameter that can be used with {@link #CONTENT_FILTER_URI}. If "1" or "true", display names are searched. If "0" or "false", display names are not searched. Default is "1". */ SEARCH_DISPLAY_NAME_KEY : "search_display_name", /** A boolean query parameter that can be used with {@link #CONTENT_FILTER_URI}. If "1" or "true", phone numbers are searched. If "0" or "false", phone numbers are not searched. Default is "1". */ SEARCH_PHONE_NUMBER_KEY : "search_phone_number", /***/ TYPE_HOME : "1", /***/ TYPE_MOBILE : "2", /***/ TYPE_WORK : "3", /***/ TYPE_FAX_WORK : "4", /***/ TYPE_FAX_HOME : "5", /***/ TYPE_PAGER : "6", /***/ TYPE_OTHER : "7", /***/ TYPE_CALLBACK : "8", /***/ TYPE_CAR : "9", /***/ TYPE_COMPANY_MAIN : "10", /***/ TYPE_ISDN : "11", /***/ TYPE_MAIN : "12", /***/ TYPE_OTHER_FAX : "13", /***/ TYPE_RADIO : "14", /***/ TYPE_TELEX : "15", /***/ TYPE_TTY_TDD : "16", /***/ TYPE_WORK_MOBILE : "17", /***/ TYPE_WORK_PAGER : "18", /***/ TYPE_ASSISTANT : "19", /***/ TYPE_MMS : "20", /** The phone number as the user entered it. <P>Type: TEXT</P> */ NUMBER : "data1", /** The phone number's E164 representation. This value can be omitted in which case the provider will try to automatically infer it. (It'll be left null if the provider fails to infer.) If present, {@link #NUMBER} has to be set as well (it will be ignored otherwise). <P>Type: TEXT</P> */ NORMALIZED_NUMBER : "data4", /** @deprecated use {@link #getTypeLabel(Resources, int, CharSequence)} instead. @hide */ getDisplayLabel : function( ) {}, /** @deprecated use {@link #getTypeLabel(Resources, int, CharSequence)} instead. @hide */ getDisplayLabel : function( ) {}, /**Return the string resource that best describes the given {@link #TYPE}. Will always return a valid resource. */ getTypeLabelResource : function( ) {}, /**Return a {@link CharSequence} that best describes the given type, possibly substituting the given {@link #LABEL} value for {@link #TYPE_CUSTOM}. */ getTypeLabel : function( ) {}, };