# ProviderUpdateRequester

Summary:[Ctors](https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester#inhmethods)  

# ProviderUpdateRequester

`
public


class
ProviderUpdateRequester
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|----------------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.wearable.complications.ProviderUpdateRequester |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
use the[Jetpack Wear Watch Face](https://developer.android.com/jetpack/androidx/releases/wear-watchface)libraries instead.

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](https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester.html#ProviderUpdateRequester(android.content.Context,%20android.content.ComponentName))`(`[Context](http://developer.android.com/reference/android/content/Context.html)` context, `[ComponentName](http://developer.android.com/reference/android/content/ComponentName.html)` providerComponent) ` |

|                                                                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                                                                    ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[requestUpdate](https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester.html#requestUpdate(int...))`(int... complicationIds) ` Requests that the system call[onComplicationUpdate](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html#onComplicationUpdate(int,%20int,%20android.support.wearable.complications.ComplicationManager))on the specified provider, for the given complication ids. |
| ` void` | ` `[requestUpdateAll](https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester.html#requestUpdateAll())`() ` Requests that the system call[onComplicationUpdate](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html#onComplicationUpdate(int,%20int,%20android.support.wearable.complications.ComplicationManager))on the specified provider, for all active complications using that provider.     |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Public constructors

### ProviderUpdateRequester

```
public ProviderUpdateRequester (Context context, 
                ComponentName providerComponent)
```

<br />

<br />

|                                                                                                                       Parameters                                                                                                                       ||
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `providerComponent` | `ComponentName`: the component name of the[ComplicationProviderService](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html)that this will request updates for <br /> |

## Public methods

### requestUpdate

```
public void requestUpdate (int... complicationIds)
```

Requests that the system call[onComplicationUpdate](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html#onComplicationUpdate(int,%20int,%20android.support.wearable.complications.ComplicationManager))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.

<br />

|                                                                                                                                                                                                                                                                                         Parameters                                                                                                                                                                                                                                                                                         ||
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `complicationIds` | `int`: the ids of the complications to be updated, as provided in calls to[onComplicationActivated](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html#onComplicationActivated(int,%20int,%20android.support.wearable.complications.ComplicationManager))and[onComplicationUpdate](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html#onComplicationUpdate(int,%20int,%20android.support.wearable.complications.ComplicationManager)). <br /> |

### requestUpdateAll

```
public void requestUpdateAll ()
```

Requests that the system call[onComplicationUpdate](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html#onComplicationUpdate(int,%20int,%20android.support.wearable.complications.ComplicationManager))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.

<br />