FileDocCategorySizeDatePackage
RemoteViewsService.javaAPI DocAndroid 5.1 API10053Thu Mar 12 22:22:10 GMT 2015android.widget

RemoteViewsService

public abstract class RemoteViewsService extends android.app.Service
The service to be connected to for a remote adapter to request RemoteViews. Users should extend the RemoteViewsService to provide the appropriate RemoteViewsFactory's used to populate the remote collection view (ListView, GridView, etc).

Fields Summary
private static final String
LOG_TAG
private static final HashMap
sRemoteViewFactories
private static final Object
sLock
Constructors Summary
Methods Summary
public android.os.IBinderonBind(android.content.Intent intent)

        synchronized (sLock) {
            Intent.FilterComparison fc = new Intent.FilterComparison(intent);
            RemoteViewsFactory factory = null;
            boolean isCreated = false;
            if (!sRemoteViewFactories.containsKey(fc)) {
                factory = onGetViewFactory(intent);
                sRemoteViewFactories.put(fc, factory);
                factory.onCreate();
                isCreated = false;
            } else {
                factory = sRemoteViewFactories.get(fc);
                isCreated = true;
            }
            return new RemoteViewsFactoryAdapter(factory, isCreated);
        }
    
public abstract android.widget.RemoteViewsService$RemoteViewsFactoryonGetViewFactory(android.content.Intent intent)
To be implemented by the derived service to generate appropriate factories for the data.