lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

ProviderInfoRetriever.OnProviderInfoReceivedCallback

public static abstract class ProviderInfoRetriever.OnProviderInfoReceivedCallback
extends Object

java.lang.Object
   ↳ android.support.wearable.complications.ProviderInfoRetriever.OnProviderInfoReceivedCallback


Interface for a callback to be invoked when provider info is received.

Summary

Public constructors

ProviderInfoRetriever.OnProviderInfoReceivedCallback()

Public methods

abstract void onProviderInfoReceived(int watchFaceComplicationId, ComplicationProviderInfo info)

Called when details of the provider for a particular complication has been received.

void onRetrievalFailed()

Called if retrieval of provider info fails.

Inherited methods

From class java.lang.Object

Public constructors

ProviderInfoRetriever.OnProviderInfoReceivedCallback

ProviderInfoRetriever.OnProviderInfoReceivedCallback ()

Public methods

onProviderInfoReceived

void onProviderInfoReceived (int watchFaceComplicationId, 
                ComplicationProviderInfo info)

Called when details of the provider for a particular complication has been received.

Parameters
watchFaceComplicationId int: the id for the complication, as provided to retrieveProviderInfo(ProviderInfoRetriever.OnProviderInfoReceivedCallback, ComponentName, int...)

info ComplicationProviderInfo: containing details of the provider for that complication, or null if no provider is currently configured

onRetrievalFailed

void onRetrievalFailed ()

Called if retrieval of provider info fails.