public abstract class

DriveEventService

extends IntentService
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ android.app.IntentService
           ↳ com.google.android.gms.drive.events.DriveEventService

Class Overview

Abstract base class for an intent service that handles Drive events. These events will be delivered using intents and invokes the appropriate onXxxEvent callback for expected event types. Refer to DriveEvent for more information about Drive event subscriptions.

The default implementation of all event handling (onXxxEvent) methods will log a warning to indicate that methods received are not being handled.

The implementation subclass must be listed as an exported service in the Android manifest for the application to be valid as an argument to an add subscription call and to receive event intents from the Drive service at runtime.

Summary

[Expand]
Inherited Constants
From class android.app.Service
From class android.content.Context
From interface android.content.ComponentCallbacks2
Protected Constructors
DriveEventService(String name)
Creates a new event service instance.
Public Methods
void onChangeEvent(ChangeEvent event)
Called when an event intent containing a ChangeEvent is delivered to the service.
Protected Methods
final void onHandleIntent(Intent intent)
[Expand]
Inherited Methods
From class android.app.IntentService
From class android.app.Service
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2

Protected Constructors

protected DriveEventService (String name)

Creates a new event service instance.

Parameters
name the name of the event service, used to name the worker thread (for debugging).

Public Methods

public void onChangeEvent (ChangeEvent event)

Called when an event intent containing a ChangeEvent is delivered to the service. The default implementation will simply log a warning about an unhandled event.

Protected Methods

protected final void onHandleIntent (Intent intent)