public abstract class

KeyguardExternalViewProviderService

extends Service
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ cyanogenmod.externalviews.KeyguardExternalViewProviderService

Class Overview

A class for providing a view that can be displayed within the lock screen. Applications that wish to provide a view to be displayed within the lock screen should extend this service.

Applications extending this class should include the THIRD_PARTY_KEYGUARD permission in their manifest

Applications extending this class should also extend KeyguardExternalViewProviderService.Provider and return a new instance of KeyguardExternalViewProviderService.Provider in createExternalView(Bundle).

Summary

Nested Classes
class KeyguardExternalViewProviderService.Provider This class provides an interface for the host and service to communicate to each other. 
Constants
String META_DATA Name under which an external keyguard view publishes information about itself.
String SERVICE_INTERFACE The action that must be declared as handled by this service.
[Expand]
Inherited Constants
From class android.app.Service
From class android.content.Context
From interface android.content.ComponentCallbacks2
Public Constructors
KeyguardExternalViewProviderService()
Public Methods
final IBinder onBind(Intent intent)
void onCreate()
int onStartCommand(Intent intent, int flags, int startId)
Protected Methods
abstract KeyguardExternalViewProviderService.Provider createExternalView(Bundle options)
Called when the host has bound to this service.
[Expand]
Inherited Methods
From class android.app.Service
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks2
From interface android.content.ComponentCallbacks

Constants

public static final String META_DATA

Added in API level 4

Name under which an external keyguard view publishes information about itself. This meta-data must reference an XML resource containing a <lockscreen> tag.

Constant Value: "cyanogenmod.externalviews.keyguard"

public static final String SERVICE_INTERFACE

Added in API level 4

The action that must be declared as handled by this service.

Constant Value: "cyanogenmod.externalviews.KeyguardExternalViewProviderService"

Public Constructors

public KeyguardExternalViewProviderService ()

Added in API level 4

Public Methods

public final IBinder onBind (Intent intent)

Added in API level 4

public void onCreate ()

public int onStartCommand (Intent intent, int flags, int startId)

Protected Methods

protected abstract KeyguardExternalViewProviderService.Provider createExternalView (Bundle options)

Added in API level 4

Called when the host has bound to this service.

Parameters
options Optional bundle. This param is currently not used.
Returns
  • The newly created provider.