Skip to content

Most visited

Recently visited

navigation

ProviderUpdateRequester

public class ProviderUpdateRequester
extends Object

java.lang.Object
   ↳ android.support.wearable.complications.ProviderUpdateRequester


Allows complication providers to request update calls from the system. This effectively allows providers to push updates to the system outside of the update request cycle.

Summary

Public constructors

ProviderUpdateRequester(Context context, ComponentName providerComponent)

Public methods

void requestUpdate(int... complicationIds)

Requests that the system call onComplicationUpdate on the specified provider, for the given complication ids.

void requestUpdateAll()

Requests that the system call onComplicationUpdate on the specified provider, for all active complications using that provider.

Inherited methods

From class java.lang.Object

Public constructors

ProviderUpdateRequester

ProviderUpdateRequester (Context context, 
                ComponentName providerComponent)

Parameters
providerComponent ComponentName: the component name of the ComplicationProviderService that this will request updates for

Public methods

requestUpdate

void requestUpdate (int... complicationIds)

Requests that the system call onComplicationUpdate on the specified provider, for the given complication ids.

This will only work if the complications are active and the specified provider is the one configured for those complications.

This will also only work if called from the same package as the provider.

Parameters
complicationIds int: the ids of the complications to be updated, as provided in calls to onComplicationActivated and onComplicationUpdate.

requestUpdateAll

void requestUpdateAll ()

Requests that the system call onComplicationUpdate on the specified provider, for all active complications using that provider.

This will do nothing if no active complications are configured to use the specified provider.

This will also only work if called from the same package as the provider.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)