object Sources
Constants and helper methods for the Sources table, providing access to sources' information.
_ID |
The unique ID of the Source, suitable for use with ContentUris.withAppendedId. const val _ID: String |
ACTION_SOURCE_CHANGED |
Intent action that will be broadcast when the source info is changed. This happens immediately after the ContentProvider is updated with data and should be considered the signal that you can retrieve the new source info. const val |
COLUMN_NAME_AUTHORITY |
Column name for the authority of the provider for this artwork. const val COLUMN_NAME_AUTHORITY: String |
COLUMN_NAME_DESCRIPTION |
Column name for the source's description. const val COLUMN_NAME_DESCRIPTION: String |
COLUMN_NAME_SUPPORTS_NEXT_ARTWORK_COMMAND |
Column name for the flag indicating if the source supports a 'Next Artwork' action const val COLUMN_NAME_SUPPORTS_NEXT_ARTWORK_COMMAND: String |
CONTENT_ITEM_TYPE |
The MIME type of CONTENT_URI providing a single source. const val CONTENT_ITEM_TYPE: String |
CONTENT_TYPE |
The MIME type of CONTENT_URI providing sources. const val CONTENT_TYPE: String |
CONTENT_URI |
The content:// style URL for this table. val CONTENT_URI: Uri |
DEFAULT_SORT_ORDER |
The default sort order for this table const val DEFAULT_SORT_ORDER: String |
TABLE_NAME |
The table name offered by this provider. const val TABLE_NAME: String |
createChooseProviderIntent |
Deep link into Muzei's Sources screen, automatically scrolling to the com.google.android.apps.muzei.api.provider.MuzeiArtProvider associated with the given authority. If Muzei is not yet activated, users will be asked to activate Muzei before continuing onto the Sources screen. fun createChooseProviderIntent(authority: String): Intent |
isProviderSelected |
Checks the Sources table provided by Muzei to determine whether the com.google.android.apps.muzei.api.provider.MuzeiArtProvider associated with the given authority has been selected by the user. fun isProviderSelected(context: Context, authority: String): Boolean |