public class

ExternalSource

extends FallbackSource
java.lang.Object
   ↳ com.android.contacts.model.ContactsSource
     ↳ com.android.contacts.model.FallbackSource
       ↳ com.android.contacts.model.ExternalSource

Class Overview

Internal structure that represents constraints and styles for a specific data source, such as the various data types they support, including details on how those types should be rendered and edited.

In the future this may be inflated from XML defined by a data source.

Summary

[Expand]
Inherited Constants
From class com.android.contacts.model.FallbackSource
From class com.android.contacts.model.ContactsSource
[Expand]
Inherited Fields
From class com.android.contacts.model.ContactsSource
Public Constructors
ExternalSource(String resPackageName)
Public Methods
int getHeaderColor(Context context)
int getSideBarColor(Context context)
void inflate(Context context, int inflateLevel)
Ensure that the constraint rules behind this ContactsSource have been inflated.
Protected Methods
void inflate(Context context, XmlPullParser parser)
Inflate this ContactsSource from the given parser.
[Expand]
Inherited Methods
From class com.android.contacts.model.FallbackSource
From class com.android.contacts.model.ContactsSource
From class java.lang.Object

Public Constructors

public ExternalSource (String resPackageName)

Public Methods

public int getHeaderColor (Context context)

public int getSideBarColor (Context context)

public void inflate (Context context, int inflateLevel)

Ensure that the constraint rules behind this ContactsSource have been inflated. Because this may involve parsing meta-data from PackageManager, it shouldn't be called from a UI thread.

Protected Methods

protected void inflate (Context context, XmlPullParser parser)

Inflate this ContactsSource from the given parser. This may only load details matching the publicly-defined schema.