Added in API level 11

RemoteViewsService


abstract class RemoteViewsService : Service
kotlin.Any
   ↳ 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
abstract

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

Inherited constants
Public constructors

Public methods
open IBinder?
onBind(intent: Intent!)

abstract RemoteViewsService.RemoteViewsFactory!

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

Inherited functions

Public constructors

RemoteViewsService

RemoteViewsService()

Public methods

onBind

Added in API level 11
open fun onBind(intent: Intent!): IBinder?
Parameters
intent Intent!: The Intent that was used to bind to this service, as given to android.content.Context#bindService. Note that any extras that were included with the Intent at that point will not be seen here.
Return
IBinder? Return an IBinder through which clients can call on to the service.

onGetViewFactory

Added in API level 11
abstract fun onGetViewFactory(intent: Intent!): RemoteViewsService.RemoteViewsFactory!

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