RemoteViewsService


public abstract class RemoteViewsService
extends Service

java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ android.widget.RemoteViewsService


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).

Summary

Nested classes

interface RemoteViewsService.RemoteViewsFactory

An interface for an adapter between a remote collection view (ListView, GridView, etc) and the underlying data for that view. 

Inherited constants

Public constructors

RemoteViewsService()

Public methods

IBinder onBind(Intent intent)

Return the communication channel to the service.

abstract RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent)

To be implemented by the derived service to generate appropriate factories for the data.

Inherited methods

Public constructors

RemoteViewsService

public RemoteViewsService ()

Public methods

onBind

Added in API level 11
public IBinder onBind (Intent intent)

Return the communication channel to the service. May return null if clients can not bind to the service. The returned IBinder is usually for a complex interface that has been described using aidl.

Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about the main thread can be found in Processes and Threads.

Parameters
intent Intent: The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.

Returns
IBinder Return an IBinder through which clients can call on to the service.

onGetViewFactory

Added in API level 11
public abstract RemoteViewsService.RemoteViewsFactory onGetViewFactory (Intent intent)

To be implemented by the derived service to generate appropriate factories for the data.

Parameters
intent Intent

Returns
RemoteViewsService.RemoteViewsFactory