ComplicationProviderService
public
abstract
class
ComplicationProviderService
extends Service
Class for providers of complication data.
A provider service must implement onComplicationUpdate(int, int, ComplicationManager)
to respond to requests for
updates from the complication system.
The manifest declaration of this service must include an intent filter for ACTION_COMPLICATION_UPDATE_REQUEST
. Metadata to specify the supported types, update period, and
config action if required, should also be included (see METADATA_KEY_SUPPORTED_TYPES
,
METADATA_KEY_UPDATE_PERIOD_SECONDS
, and METADATA_KEY_PROVIDER_CONFIG_ACTION
).
The manifest entry for the service should also include an android:icon attribute. The icon
provided there should be a single-color white icon that represents the provider. This icon will
be shown in the provider chooser interface, and may also be included in ComplicationProviderInfo
given to watch faces for display in their configuration activities.
The manifest entry should also include android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER"
to ensure
that only the system can bind to it.
Summary
Inherited constants |
From
class
android.app.Service
int |
START_CONTINUATION_MASK
|
int |
START_FLAG_REDELIVERY
|
int |
START_FLAG_RETRY
|
int |
START_NOT_STICKY
|
int |
START_REDELIVER_INTENT
|
int |
START_STICKY
|
int |
START_STICKY_COMPATIBILITY
|
int |
STOP_FOREGROUND_DETACH
|
int |
STOP_FOREGROUND_REMOVE
|
|
From
class
android.content.Context
String |
ACCESSIBILITY_SERVICE
|
String |
ACCOUNT_SERVICE
|
String |
ACTIVITY_SERVICE
|
String |
ALARM_SERVICE
|
String |
APPWIDGET_SERVICE
|
String |
APP_OPS_SERVICE
|
String |
AUDIO_SERVICE
|
String |
BATTERY_SERVICE
|
int |
BIND_ABOVE_CLIENT
|
int |
BIND_ADJUST_WITH_ACTIVITY
|
int |
BIND_ALLOW_OOM_MANAGEMENT
|
int |
BIND_AUTO_CREATE
|
int |
BIND_DEBUG_UNBIND
|
int |
BIND_EXTERNAL_SERVICE
|
int |
BIND_IMPORTANT
|
int |
BIND_INCLUDE_CAPABILITIES
|
int |
BIND_NOT_FOREGROUND
|
int |
BIND_NOT_PERCEPTIBLE
|
int |
BIND_WAIVE_PRIORITY
|
String |
BIOMETRIC_SERVICE
|
String |
BLOB_STORE_SERVICE
|
String |
BLUETOOTH_SERVICE
|
String |
CAMERA_SERVICE
|
String |
CAPTIONING_SERVICE
|
String |
CARRIER_CONFIG_SERVICE
|
String |
CLIPBOARD_SERVICE
|
String |
COMPANION_DEVICE_SERVICE
|
String |
CONNECTIVITY_DIAGNOSTICS_SERVICE
|
String |
CONNECTIVITY_SERVICE
|
String |
CONSUMER_IR_SERVICE
|
int |
CONTEXT_IGNORE_SECURITY
|
int |
CONTEXT_INCLUDE_CODE
|
int |
CONTEXT_RESTRICTED
|
String |
CROSS_PROFILE_APPS_SERVICE
|
String |
DEVICE_POLICY_SERVICE
|
String |
DISPLAY_SERVICE
|
String |
DOWNLOAD_SERVICE
|
String |
DROPBOX_SERVICE
|
String |
EUICC_SERVICE
|
String |
FILE_INTEGRITY_SERVICE
|
String |
FINGERPRINT_SERVICE
|
String |
HARDWARE_PROPERTIES_SERVICE
|
String |
INPUT_METHOD_SERVICE
|
String |
INPUT_SERVICE
|
String |
IPSEC_SERVICE
|
String |
JOB_SCHEDULER_SERVICE
|
String |
KEYGUARD_SERVICE
|
String |
LAUNCHER_APPS_SERVICE
|
String |
LAYOUT_INFLATER_SERVICE
|
String |
LOCATION_SERVICE
|
String |
MEDIA_PROJECTION_SERVICE
|
String |
MEDIA_ROUTER_SERVICE
|
String |
MEDIA_SESSION_SERVICE
|
String |
MIDI_SERVICE
|
int |
MODE_APPEND
|
int |
MODE_ENABLE_WRITE_AHEAD_LOGGING
|
int |
MODE_MULTI_PROCESS
|
int |
MODE_NO_LOCALIZED_COLLATORS
|
int |
MODE_PRIVATE
|
int |
MODE_WORLD_READABLE
|
int |
MODE_WORLD_WRITEABLE
|
String |
NETWORK_STATS_SERVICE
|
String |
NFC_SERVICE
|
String |
NOTIFICATION_SERVICE
|
String |
NSD_SERVICE
|
String |
POWER_SERVICE
|
String |
PRINT_SERVICE
|
int |
RECEIVER_VISIBLE_TO_INSTANT_APPS
|
String |
RESTRICTIONS_SERVICE
|
String |
ROLE_SERVICE
|
String |
SEARCH_SERVICE
|
String |
SENSOR_SERVICE
|
String |
SHORTCUT_SERVICE
|
String |
STORAGE_SERVICE
|
String |
STORAGE_STATS_SERVICE
|
String |
SYSTEM_HEALTH_SERVICE
|
String |
TELECOM_SERVICE
|
String |
TELEPHONY_IMS_SERVICE
|
String |
TELEPHONY_SERVICE
|
String |
TELEPHONY_SUBSCRIPTION_SERVICE
|
String |
TEXT_CLASSIFICATION_SERVICE
|
String |
TEXT_SERVICES_MANAGER_SERVICE
|
String |
TV_INPUT_SERVICE
|
String |
UI_MODE_SERVICE
|
String |
USAGE_STATS_SERVICE
|
String |
USB_SERVICE
|
String |
USER_SERVICE
|
String |
VIBRATOR_SERVICE
|
String |
VPN_MANAGEMENT_SERVICE
|
String |
WALLPAPER_SERVICE
|
String |
WIFI_AWARE_SERVICE
|
String |
WIFI_P2P_SERVICE
|
String |
WIFI_RTT_RANGING_SERVICE
|
String |
WIFI_SERVICE
|
String |
WINDOW_SERVICE
|
|
From
interface
android.content.ComponentCallbacks2
int |
TRIM_MEMORY_BACKGROUND
|
int |
TRIM_MEMORY_COMPLETE
|
int |
TRIM_MEMORY_MODERATE
|
int |
TRIM_MEMORY_RUNNING_CRITICAL
|
int |
TRIM_MEMORY_RUNNING_LOW
|
int |
TRIM_MEMORY_RUNNING_MODERATE
|
int |
TRIM_MEMORY_UI_HIDDEN
|
|
Inherited methods |
From
class
android.app.Service
void
|
attachBaseContext(Context arg0)
|
void
|
dump(FileDescriptor arg0, PrintWriter arg1, String[] arg2)
|
final
Application
|
getApplication()
|
final
int
|
getForegroundServiceType()
|
abstract
IBinder
|
onBind(Intent arg0)
|
void
|
onConfigurationChanged(Configuration arg0)
|
void
|
onCreate()
|
void
|
onDestroy()
|
void
|
onLowMemory()
|
void
|
onRebind(Intent arg0)
|
void
|
onStart(Intent arg0, int arg1)
|
int
|
onStartCommand(Intent arg0, int arg1, int arg2)
|
void
|
onTaskRemoved(Intent arg0)
|
void
|
onTrimMemory(int arg0)
|
boolean
|
onUnbind(Intent arg0)
|
final
void
|
startForeground(int arg0, Notification arg1)
|
final
void
|
startForeground(int arg0, Notification arg1, int arg2)
|
final
void
|
stopForeground(int arg0)
|
final
void
|
stopForeground(boolean arg0)
|
final
void
|
stopSelf()
|
final
void
|
stopSelf(int arg0)
|
final
boolean
|
stopSelfResult(int arg0)
|
|
From
class
android.content.ContextWrapper
void
|
attachBaseContext(Context arg0)
|
boolean
|
bindIsolatedService(Intent arg0, int arg1, String arg2, Executor arg3, ServiceConnection arg4)
|
boolean
|
bindService(Intent arg0, int arg1, Executor arg2, ServiceConnection arg3)
|
boolean
|
bindService(Intent arg0, ServiceConnection arg1, int arg2)
|
boolean
|
bindServiceAsUser(Intent arg0, ServiceConnection arg1, int arg2, UserHandle arg3)
|
int
|
checkCallingOrSelfPermission(String arg0)
|
int
|
checkCallingOrSelfUriPermission(Uri arg0, int arg1)
|
int
|
checkCallingPermission(String arg0)
|
int
|
checkCallingUriPermission(Uri arg0, int arg1)
|
int
|
checkPermission(String arg0, int arg1, int arg2)
|
int
|
checkSelfPermission(String arg0)
|
int
|
checkUriPermission(Uri arg0, String arg1, String arg2, int arg3, int arg4, int arg5)
|
int
|
checkUriPermission(Uri arg0, int arg1, int arg2, int arg3)
|
void
|
clearWallpaper()
|
Context
|
createAttributionContext(String arg0)
|
Context
|
createConfigurationContext(Configuration arg0)
|
Context
|
createContextForSplit(String arg0)
|
Context
|
createDeviceProtectedStorageContext()
|
Context
|
createDisplayContext(Display arg0)
|
Context
|
createPackageContext(String arg0, int arg1)
|
Context
|
createWindowContext(int arg0, Bundle arg1)
|
String[]
|
databaseList()
|
boolean
|
deleteDatabase(String arg0)
|
boolean
|
deleteFile(String arg0)
|
boolean
|
deleteSharedPreferences(String arg0)
|
void
|
enforceCallingOrSelfPermission(String arg0, String arg1)
|
void
|
enforceCallingOrSelfUriPermission(Uri arg0, int arg1, String arg2)
|
void
|
enforceCallingPermission(String arg0, String arg1)
|
void
|
enforceCallingUriPermission(Uri arg0, int arg1, String arg2)
|
void
|
enforcePermission(String arg0, int arg1, int arg2, String arg3)
|
void
|
enforceUriPermission(Uri arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6)
|
void
|
enforceUriPermission(Uri arg0, int arg1, int arg2, int arg3, String arg4)
|
String[]
|
fileList()
|
Context
|
getApplicationContext()
|
ApplicationInfo
|
getApplicationInfo()
|
AssetManager
|
getAssets()
|
String
|
getAttributionTag()
|
Context
|
getBaseContext()
|
File
|
getCacheDir()
|
ClassLoader
|
getClassLoader()
|
File
|
getCodeCacheDir()
|
ContentResolver
|
getContentResolver()
|
File
|
getDataDir()
|
File
|
getDatabasePath(String arg0)
|
File
|
getDir(String arg0, int arg1)
|
Display
|
getDisplay()
|
File
|
getExternalCacheDir()
|
File[]
|
getExternalCacheDirs()
|
File
|
getExternalFilesDir(String arg0)
|
File[]
|
getExternalFilesDirs(String arg0)
|
File[]
|
getExternalMediaDirs()
|
File
|
getFileStreamPath(String arg0)
|
File
|
getFilesDir()
|
Executor
|
getMainExecutor()
|
Looper
|
getMainLooper()
|
File
|
getNoBackupFilesDir()
|
File
|
getObbDir()
|
File[]
|
getObbDirs()
|
String
|
getOpPackageName()
|
String
|
getPackageCodePath()
|
PackageManager
|
getPackageManager()
|
String
|
getPackageName()
|
String
|
getPackageResourcePath()
|
Resources
|
getResources()
|
SharedPreferences
|
getSharedPreferences(String arg0, int arg1)
|
Object
|
getSystemService(String arg0)
|
String
|
getSystemServiceName(Class<?> arg0)
|
Resources.Theme
|
getTheme()
|
Drawable
|
getWallpaper()
|
int
|
getWallpaperDesiredMinimumHeight()
|
int
|
getWallpaperDesiredMinimumWidth()
|
void
|
grantUriPermission(String arg0, Uri arg1, int arg2)
|
boolean
|
isDeviceProtectedStorage()
|
boolean
|
isRestricted()
|
boolean
|
moveDatabaseFrom(Context arg0, String arg1)
|
boolean
|
moveSharedPreferencesFrom(Context arg0, String arg1)
|
FileInputStream
|
openFileInput(String arg0)
|
FileOutputStream
|
openFileOutput(String arg0, int arg1)
|
SQLiteDatabase
|
openOrCreateDatabase(String arg0, int arg1, SQLiteDatabase.CursorFactory arg2, DatabaseErrorHandler arg3)
|
SQLiteDatabase
|
openOrCreateDatabase(String arg0, int arg1, SQLiteDatabase.CursorFactory arg2)
|
Drawable
|
peekWallpaper()
|
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1)
|
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1, int arg2)
|
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1, String arg2, Handler arg3, int arg4)
|
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1, String arg2, Handler arg3)
|
void
|
removeStickyBroadcast(Intent arg0)
|
void
|
removeStickyBroadcastAsUser(Intent arg0, UserHandle arg1)
|
void
|
revokeUriPermission(Uri arg0, int arg1)
|
void
|
revokeUriPermission(String arg0, Uri arg1, int arg2)
|
void
|
sendBroadcast(Intent arg0, String arg1)
|
void
|
sendBroadcast(Intent arg0)
|
void
|
sendBroadcastAsUser(Intent arg0, UserHandle arg1)
|
void
|
sendBroadcastAsUser(Intent arg0, UserHandle arg1, String arg2)
|
void
|
sendOrderedBroadcast(Intent arg0, String arg1, String arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)
|
void
|
sendOrderedBroadcast(Intent arg0, int arg1, String arg2, String arg3, BroadcastReceiver arg4, Handler arg5, String arg6, Bundle arg7, Bundle arg8)
|
void
|
sendOrderedBroadcast(Intent arg0, String arg1, BroadcastReceiver arg2, Handler arg3, int arg4, String arg5, Bundle arg6)
|
void
|
sendOrderedBroadcast(Intent arg0, String arg1)
|
void
|
sendOrderedBroadcastAsUser(Intent arg0, UserHandle arg1, String arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)
|
void
|
sendStickyBroadcast(Intent arg0)
|
void
|
sendStickyBroadcastAsUser(Intent arg0, UserHandle arg1)
|
void
|
sendStickyOrderedBroadcast(Intent arg0, BroadcastReceiver arg1, Handler arg2, int arg3, String arg4, Bundle arg5)
|
void
|
sendStickyOrderedBroadcastAsUser(Intent arg0, UserHandle arg1, BroadcastReceiver arg2, Handler arg3, int arg4, String arg5, Bundle arg6)
|
void
|
setTheme(int arg0)
|
void
|
setWallpaper(Bitmap arg0)
|
void
|
setWallpaper(InputStream arg0)
|
void
|
startActivities(Intent[] arg0, Bundle arg1)
|
void
|
startActivities(Intent[] arg0)
|
void
|
startActivity(Intent arg0)
|
void
|
startActivity(Intent arg0, Bundle arg1)
|
ComponentName
|
startForegroundService(Intent arg0)
|
boolean
|
startInstrumentation(ComponentName arg0, String arg1, Bundle arg2)
|
void
|
startIntentSender(IntentSender arg0, Intent arg1, int arg2, int arg3, int arg4)
|
void
|
startIntentSender(IntentSender arg0, Intent arg1, int arg2, int arg3, int arg4, Bundle arg5)
|
ComponentName
|
startService(Intent arg0)
|
boolean
|
stopService(Intent arg0)
|
void
|
unbindService(ServiceConnection arg0)
|
void
|
unregisterReceiver(BroadcastReceiver arg0)
|
void
|
updateServiceGroup(ServiceConnection arg0, int arg1, int arg2)
|
|
From
class
android.content.Context
boolean
|
bindIsolatedService(Intent arg0, int arg1, String arg2, Executor arg3, ServiceConnection arg4)
|
boolean
|
bindService(Intent arg0, int arg1, Executor arg2, ServiceConnection arg3)
|
abstract
boolean
|
bindService(Intent arg0, ServiceConnection arg1, int arg2)
|
boolean
|
bindServiceAsUser(Intent arg0, ServiceConnection arg1, int arg2, UserHandle arg3)
|
abstract
int
|
checkCallingOrSelfPermission(String arg0)
|
abstract
int
|
checkCallingOrSelfUriPermission(Uri arg0, int arg1)
|
abstract
int
|
checkCallingPermission(String arg0)
|
abstract
int
|
checkCallingUriPermission(Uri arg0, int arg1)
|
abstract
int
|
checkPermission(String arg0, int arg1, int arg2)
|
abstract
int
|
checkSelfPermission(String arg0)
|
abstract
int
|
checkUriPermission(Uri arg0, String arg1, String arg2, int arg3, int arg4, int arg5)
|
abstract
int
|
checkUriPermission(Uri arg0, int arg1, int arg2, int arg3)
|
abstract
void
|
clearWallpaper()
|
Context
|
createAttributionContext(String arg0)
|
abstract
Context
|
createConfigurationContext(Configuration arg0)
|
abstract
Context
|
createContextForSplit(String arg0)
|
abstract
Context
|
createDeviceProtectedStorageContext()
|
abstract
Context
|
createDisplayContext(Display arg0)
|
abstract
Context
|
createPackageContext(String arg0, int arg1)
|
Context
|
createWindowContext(int arg0, Bundle arg1)
|
abstract
String[]
|
databaseList()
|
abstract
boolean
|
deleteDatabase(String arg0)
|
abstract
boolean
|
deleteFile(String arg0)
|
abstract
boolean
|
deleteSharedPreferences(String arg0)
|
abstract
void
|
enforceCallingOrSelfPermission(String arg0, String arg1)
|
abstract
void
|
enforceCallingOrSelfUriPermission(Uri arg0, int arg1, String arg2)
|
abstract
void
|
enforceCallingPermission(String arg0, String arg1)
|
abstract
void
|
enforceCallingUriPermission(Uri arg0, int arg1, String arg2)
|
abstract
void
|
enforcePermission(String arg0, int arg1, int arg2, String arg3)
|
abstract
void
|
enforceUriPermission(Uri arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6)
|
abstract
void
|
enforceUriPermission(Uri arg0, int arg1, int arg2, int arg3, String arg4)
|
abstract
String[]
|
fileList()
|
abstract
Context
|
getApplicationContext()
|
abstract
ApplicationInfo
|
getApplicationInfo()
|
abstract
AssetManager
|
getAssets()
|
String
|
getAttributionTag()
|
abstract
File
|
getCacheDir()
|
abstract
ClassLoader
|
getClassLoader()
|
abstract
File
|
getCodeCacheDir()
|
final
int
|
getColor(int arg0)
|
final
ColorStateList
|
getColorStateList(int arg0)
|
abstract
ContentResolver
|
getContentResolver()
|
abstract
File
|
getDataDir()
|
abstract
File
|
getDatabasePath(String arg0)
|
abstract
File
|
getDir(String arg0, int arg1)
|
Display
|
getDisplay()
|
final
Drawable
|
getDrawable(int arg0)
|
abstract
File
|
getExternalCacheDir()
|
abstract
File[]
|
getExternalCacheDirs()
|
abstract
File
|
getExternalFilesDir(String arg0)
|
abstract
File[]
|
getExternalFilesDirs(String arg0)
|
abstract
File[]
|
getExternalMediaDirs()
|
abstract
File
|
getFileStreamPath(String arg0)
|
abstract
File
|
getFilesDir()
|
Executor
|
getMainExecutor()
|
abstract
Looper
|
getMainLooper()
|
abstract
File
|
getNoBackupFilesDir()
|
abstract
File
|
getObbDir()
|
abstract
File[]
|
getObbDirs()
|
String
|
getOpPackageName()
|
abstract
String
|
getPackageCodePath()
|
abstract
PackageManager
|
getPackageManager()
|
abstract
String
|
getPackageName()
|
abstract
String
|
getPackageResourcePath()
|
abstract
Resources
|
getResources()
|
abstract
SharedPreferences
|
getSharedPreferences(String arg0, int arg1)
|
final
String
|
getString(int arg0, Object... arg1)
|
final
String
|
getString(int arg0)
|
final
<T>
T
|
getSystemService(Class<T> arg0)
|
abstract
Object
|
getSystemService(String arg0)
|
abstract
String
|
getSystemServiceName(Class<?> arg0)
|
final
CharSequence
|
getText(int arg0)
|
abstract
Resources.Theme
|
getTheme()
|
abstract
Drawable
|
getWallpaper()
|
abstract
int
|
getWallpaperDesiredMinimumHeight()
|
abstract
int
|
getWallpaperDesiredMinimumWidth()
|
abstract
void
|
grantUriPermission(String arg0, Uri arg1, int arg2)
|
abstract
boolean
|
isDeviceProtectedStorage()
|
boolean
|
isRestricted()
|
abstract
boolean
|
moveDatabaseFrom(Context arg0, String arg1)
|
abstract
boolean
|
moveSharedPreferencesFrom(Context arg0, String arg1)
|
final
TypedArray
|
obtainStyledAttributes(AttributeSet arg0, int[] arg1)
|
final
TypedArray
|
obtainStyledAttributes(AttributeSet arg0, int[] arg1, int arg2, int arg3)
|
final
TypedArray
|
obtainStyledAttributes(int arg0, int[] arg1)
|
final
TypedArray
|
obtainStyledAttributes(int[] arg0)
|
abstract
FileInputStream
|
openFileInput(String arg0)
|
abstract
FileOutputStream
|
openFileOutput(String arg0, int arg1)
|
abstract
SQLiteDatabase
|
openOrCreateDatabase(String arg0, int arg1, SQLiteDatabase.CursorFactory arg2, DatabaseErrorHandler arg3)
|
abstract
SQLiteDatabase
|
openOrCreateDatabase(String arg0, int arg1, SQLiteDatabase.CursorFactory arg2)
|
abstract
Drawable
|
peekWallpaper()
|
void
|
registerComponentCallbacks(ComponentCallbacks arg0)
|
abstract
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1)
|
abstract
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1, int arg2)
|
abstract
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1, String arg2, Handler arg3, int arg4)
|
abstract
Intent
|
registerReceiver(BroadcastReceiver arg0, IntentFilter arg1, String arg2, Handler arg3)
|
abstract
void
|
removeStickyBroadcast(Intent arg0)
|
abstract
void
|
removeStickyBroadcastAsUser(Intent arg0, UserHandle arg1)
|
abstract
void
|
revokeUriPermission(Uri arg0, int arg1)
|
abstract
void
|
revokeUriPermission(String arg0, Uri arg1, int arg2)
|
abstract
void
|
sendBroadcast(Intent arg0, String arg1)
|
abstract
void
|
sendBroadcast(Intent arg0)
|
abstract
void
|
sendBroadcastAsUser(Intent arg0, UserHandle arg1)
|
abstract
void
|
sendBroadcastAsUser(Intent arg0, UserHandle arg1, String arg2)
|
void
|
sendBroadcastWithMultiplePermissions(Intent arg0, String[] arg1)
|
void
|
sendOrderedBroadcast(Intent arg0, String arg1, String arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)
|
abstract
void
|
sendOrderedBroadcast(Intent arg0, String arg1, BroadcastReceiver arg2, Handler arg3, int arg4, String arg5, Bundle arg6)
|
abstract
void
|
sendOrderedBroadcast(Intent arg0, String arg1)
|
abstract
void
|
sendOrderedBroadcastAsUser(Intent arg0, UserHandle arg1, String arg2, BroadcastReceiver arg3, Handler arg4, int arg5, String arg6, Bundle arg7)
|
abstract
void
|
sendStickyBroadcast(Intent arg0)
|
abstract
void
|
sendStickyBroadcastAsUser(Intent arg0, UserHandle arg1)
|
abstract
void
|
sendStickyOrderedBroadcast(Intent arg0, BroadcastReceiver arg1, Handler arg2, int arg3, String arg4, Bundle arg5)
|
abstract
void
|
sendStickyOrderedBroadcastAsUser(Intent arg0, UserHandle arg1, BroadcastReceiver arg2, Handler arg3, int arg4, String arg5, Bundle arg6)
|
abstract
void
|
setTheme(int arg0)
|
abstract
void
|
setWallpaper(Bitmap arg0)
|
abstract
void
|
setWallpaper(InputStream arg0)
|
abstract
void
|
startActivities(Intent[] arg0, Bundle arg1)
|
abstract
void
|
startActivities(Intent[] arg0)
|
abstract
void
|
startActivity(Intent arg0)
|
abstract
void
|
startActivity(Intent arg0, Bundle arg1)
|
abstract
ComponentName
|
startForegroundService(Intent arg0)
|
abstract
boolean
|
startInstrumentation(ComponentName arg0, String arg1, Bundle arg2)
|
abstract
void
|
startIntentSender(IntentSender arg0, Intent arg1, int arg2, int arg3, int arg4)
|
abstract
void
|
startIntentSender(IntentSender arg0, Intent arg1, int arg2, int arg3, int arg4, Bundle arg5)
|
abstract
ComponentName
|
startService(Intent arg0)
|
abstract
boolean
|
stopService(Intent arg0)
|
abstract
void
|
unbindService(ServiceConnection arg0)
|
void
|
unregisterComponentCallbacks(ComponentCallbacks arg0)
|
abstract
void
|
unregisterReceiver(BroadcastReceiver arg0)
|
void
|
updateServiceGroup(ServiceConnection arg0, int arg1, int arg2)
|
|
From
class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From
interface
android.content.ComponentCallbacks2
abstract
void
|
onTrimMemory(int arg0)
|
|
From
interface
android.content.ComponentCallbacks
abstract
void
|
onConfigurationChanged(Configuration arg0)
|
abstract
void
|
onLowMemory()
|
|
Constants
ACTION_COMPLICATION_UPDATE_REQUEST
String ACTION_COMPLICATION_UPDATE_REQUEST
The intent action used to send update requests to the provider. Complication provider services
must declare an intent filter for this action in the manifest.
Constant Value:
"android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST"
CATEGORY_PROVIDER_CONFIG_ACTION
String CATEGORY_PROVIDER_CONFIG_ACTION
Category for provider config activities. The configuration activity for a complication provider
must specify this category in its intent filter.
Constant Value:
"android.support.wearable.complications.category.PROVIDER_CONFIG"
String EXTRA_CONFIG_COMPLICATION_ID
Extra used to supply the complication id to a provider configuration activity.
Constant Value:
"android.support.wearable.complications.EXTRA_CONFIG_COMPLICATION_ID"
String EXTRA_CONFIG_COMPLICATION_TYPE
Extra used to supply the complication type to a provider configuration activity.
Constant Value:
"android.support.wearable.complications.EXTRA_CONFIG_COMPLICATION_TYPE"
String EXTRA_CONFIG_PROVIDER_COMPONENT
Extra used to supply the provider component to a provider configuration activity.
Constant Value:
"android.support.wearable.complications.EXTRA_CONFIG_PROVIDER_COMPONENT"
String METADATA_KEY_PROVIDER_CONFIG_ACTION
Metadata key used to declare an action for a configuration activity for a provider.
A ComplicationProviderService can include a meta-data
tag with this name in its
manifest entry to cause a configuration activity to be shown when the provider is selected.
The configuration activity must reside in the same package as the provider, and must
register an intent filter for the action specified here, including CATEGORY_PROVIDER_CONFIG_ACTION
as well as CATEGORY_DEFAULT
as categories.
The complication id being configured will be included in the intent that starts the config
activity using the extra key EXTRA_CONFIG_COMPLICATION_ID
.
The complication type that will be requested from the provider will also be included, using
the extra key EXTRA_CONFIG_COMPLICATION_TYPE
.
The provider's ComponentName
will also be included in the intent that starts the
config activity, using the extra key EXTRA_CONFIG_PROVIDER_COMPONENT
.
The config activity must call setResult(int)
with either RESULT_OK
or RESULT_CANCELED
before it is finished, to tell the
system whether or not the provider should be set on the given complication.
Constant Value:
"android.support.wearable.complications.PROVIDER_CONFIG_ACTION"
String METADATA_KEY_SAFE_WATCH_FACES
Metadata key used to declare a list of watch faces that may receive data from a provider before
they are granted the RECEIVE_COMPLICATION_DATA permission. This allows the listed watch faces
to set the provider as a default and have the complication populate when the watch face is
first seen.
Only trusted watch faces that will set this provider as a default should be included in this
list.
Note that if a watch face is in the same app package as the provider, it does not need to be
added to this list.
The value of this tag should be a comma separated list of watch faces or packages. An entry
can be a flattened component, as if flattenToString()
had been called, to
declare a specific watch face as safe. An entry can also be a package name, as if getPackageName()
had been called, in which case any watch face under the app
with that package name will be considered safe for this provider.
Constant Value:
"android.support.wearable.complications.SAFE_WATCH_FACES"
String METADATA_KEY_SUPPORTED_TYPES
Metadata key used to declare supported complication types.
A ComplicationProviderService must include a meta-data
tag with this name in its
manifest entry. The value of this tag should be a comma separated list of types supported by
the provider. Types should be given as named as per the type fields in the ComplicationData
, but omitting the "TYPE_" prefix, e.g. SHORT_TEXT
, LONG_TEXT
,
RANGED_VALUE
.
The order in which types are listed has no significance. In the case where a watch face
supports multiple types in a single complication slot, the watch face will determine which
types it prefers.
For example, a provider that supports the RANGED_VALUE, SHORT_TEXT, and ICON types would
include the following in its manifest entry:
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES"
android:value="RANGED_VALUE,SHORT_TEXT,ICON"/>
Constant Value:
"android.support.wearable.complications.SUPPORTED_TYPES"
String METADATA_KEY_UPDATE_PERIOD_SECONDS
Metadata key used to declare the requested frequency of update requests.
A ComplicationProviderService should include a meta-data
tag with this name in its
manifest entry. The value of this tag is the number of seconds the provider would like to
elapse between update requests.
Note that update requests are not guaranteed to be sent with this frequency.
If a provider never needs to receive update requests beyond the one sent when a complication
is activated, the value of this tag should be 0.
For example, a provider that would like to update every ten minutes should include the
following in its manifest entry:
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS"
android:value="600"/>
Constant Value:
"android.support.wearable.complications.UPDATE_PERIOD_SECONDS"
Public constructors
ComplicationProviderService
ComplicationProviderService ()
Public methods
onComplicationActivated
void onComplicationActivated (int complicationId,
int type,
ComplicationManager manager)
Called when a complication is activated.
This occurs when the watch face calls setActiveComplications, or when this provider is
chosen for a complication which is already active.
Once this has been called, complication data may be sent for the given complicationId
, until onComplicationDeactivated(int)
is called for that id.
This will usually be followed by a call to onComplicationUpdate(int, int, ComplicationManager)
.
This will be called on the main thread.
Parameters |
complicationId |
int |
type |
int |
manager |
ComplicationManager |
onComplicationDeactivated
void onComplicationDeactivated (int complicationId)
Called when a complication is deactivated.
This occurs when the current watch face changes, or when the watch face calls
setActiveComplications and does not include the given complication (usually because the watch
face has stopped displaying it).
Once this has been called, no complication data should be sent for the given complicationId
, until onComplicationActivated(int, int, ComplicationManager)
is called again for that id.
This will be called on the main thread.
Parameters |
complicationId |
int |
onComplicationUpdate
void onComplicationUpdate (int complicationId,
int type,
ComplicationManager manager)
Called when a complication data update is requested for the given complication id.
In response to this request, updateComplicationData
should be called on the provided ComplicationManager
instance
with the data to be displayed. Or, if no update is needed, noUpdateRequired
may be called instead. One of these
methods must be called so that the system knows when the provider has finished responding to
the request.
This call does not need to happen from within this method, but it should be made reasonably
soon after the call to this method occurred. If a call does not occur within around 20 seconds
(exact timeout length subject to change), then the system will unbind from this service which
may cause your eventual update to not be received.
This will be called on the main thread.
Parameters |
complicationId |
int |
type |
int |
manager |
ComplicationManager |