本文整理汇总了Java中android.provider.ContactsContract.Data方法的典型用法代码示例。如果您正苦于以下问题:Java ContactsContract.Data方法的具体用法?Java ContactsContract.Data怎么用?Java ContactsContract.Data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.provider.ContactsContract
的用法示例。
在下文中一共展示了ContactsContract.Data方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: InsertRawContactBatch
import android.provider.ContactsContract; //导入方法依赖的package包/类
/**
* Inserts the given rawContact with the given data.
*
* @param rawContact
* @param contactData
*/
public InsertRawContactBatch(RowSnapshot<ContactsContract.RawContacts> rawContact, Iterable<RowData<ContactsContract.Data>> contactData)
{
super(new Flattened<>(
new SingletonIterable<Operation<?>>(
new Put<>(rawContact)),
new MultiInsertBatch<>(
new RawContactData(rawContact),
contactData)));
}
示例2: DataProjection
import android.provider.ContactsContract; //导入方法依赖的package包/类
public DataProjection()
{
// TODO: it's probably better to compose this from smaller projections with just a few columns
super(new MultiProjection<ContactsContract.Data>(
ContactsContract.Data._ID,
ContactsContract.Data.MIMETYPE,
ContactsContract.Data.RAW_CONTACT_ID,
ContactsContract.Data.IS_PRIMARY,
ContactsContract.Data.IS_SUPER_PRIMARY,
ContactsContract.Data.DATA_VERSION,
ContactsContract.Data.IS_READ_ONLY,
ContactsContract.Data.DATA1,
ContactsContract.Data.DATA2,
ContactsContract.Data.DATA3,
ContactsContract.Data.DATA4,
ContactsContract.Data.DATA5,
ContactsContract.Data.DATA6,
ContactsContract.Data.DATA7,
ContactsContract.Data.DATA8,
ContactsContract.Data.DATA9,
ContactsContract.Data.DATA10,
ContactsContract.Data.DATA11,
ContactsContract.Data.DATA12,
ContactsContract.Data.DATA13,
ContactsContract.Data.DATA14,
ContactsContract.Data.DATA15,
ContactsContract.Data.SYNC1,
ContactsContract.Data.SYNC2,
ContactsContract.Data.SYNC3,
ContactsContract.Data.SYNC4));
}
示例3: RawContactDataRows
import android.provider.ContactsContract; //导入方法依赖的package包/类
private RawContactDataRows(@NonNull View<ContactsContract.Data> dataView, @NonNull Projection<ContactsContract.Data> projection, @NonNull Predicate predicate)
{
super(new QueryRowSet<>(dataView, projection, predicate));
}
示例4: Data
import android.provider.ContactsContract; //导入方法依赖的package包/类
public Data(@NonNull ContentProviderClient client)
{
super(new BaseView<ContactsContract.Data>(client, ContactsContract.Data.CONTENT_URI));
}
示例5: Primary
import android.provider.ContactsContract; //导入方法依赖的package包/类
public Primary(@NonNull RowData<ContactsContract.Data> delegate)
{
mDelegate = delegate;
}
示例6: WorkPostal
import android.provider.ContactsContract; //导入方法依赖的package包/类
public WorkPostal(@NonNull StructuredPostalData delegate)
{
this((RowData<ContactsContract.Data>) delegate);
}
示例7: HomePostal
import android.provider.ContactsContract; //导入方法依赖的package包/类
public HomePostal(@NonNull StructuredPostalData delegate)
{
this((RowData<ContactsContract.Data>) delegate);
}
示例8: SuperPrimary
import android.provider.ContactsContract; //导入方法依赖的package包/类
public SuperPrimary(@NonNull RowData<ContactsContract.Data> delegate)
{
mDelegate = delegate;
}
示例9: WorkOrganization
import android.provider.ContactsContract; //导入方法依赖的package包/类
public WorkOrganization(@NonNull OrganizationData delegate)
{
this((RowData<ContactsContract.Data>) delegate);
}
示例10: Custom
import android.provider.ContactsContract; //导入方法依赖的package包/类
public Custom(@NonNull CharSequence label, @NonNull RowData<ContactsContract.Data> delegate)
{
mDelegate = delegate;
mLabel = label;
}
示例11: RawContactData
import android.provider.ContactsContract; //导入方法依赖的package包/类
public RawContactData(@NonNull RowSnapshot<ContactsContract.RawContacts> rawContact, @NonNull Table<ContactsContract.Data> dataTable)
{
this(rawContact, new Insert<>(dataTable));
}
示例12: Data
import android.provider.ContactsContract; //导入方法依赖的package包/类
public Data()
{
super(new BaseTable<ContactsContract.Data>(ContactsContract.Data.CONTENT_URI));
}