目录

Drive.Changes

Class Info

public class Drive.Changes extends java.lang.Object

Drive.Changes class.

Nested Class Summary

Qualifier and Type

Class Name and Description

class

Drive.Changes.GetStartCursor

Declaration of the Drive.Changes.GetStartCursor class.

class

Drive.Changes.List

Declaration of the Drive.Changes.List class.

class

Drive.Changes.Subscribe

Declaration of the Drive.Changes.Subscribe class.

Public Constructor Summary

Constructor Name

Drive.Changes()

Constructs a Drive.Changes object.

Public Method Summary

Qualifier and Type

Method Name and Description

Drive.Changes.GetStartCursor

getStartCursor()

Obtains a cursor to enable the file change notification function.

Drive.Changes.List

list(String cursor)

Lists changes.

Drive.Changes.Subscribe

subscribe(String cursor, Channel content)

Subscribes to changes of all files and folders. If any change is detected, a callback notification is sent to the API caller.

Public Constructors

[h2]Drive.Changes

Constructor

Drive.Changes()

Constructs a Drive.Changes object.

Public Methods

[h2]getStartCursor

Method

public Drive.Changes.GetStartCursor getStartCursor() throws java.io.IOException

Obtains a cursor to enable the file change notification function.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Changes.GetStartCursor

A Drive.Changes.GetStartCursor object.

[h2]list

Method

public Drive.Changes.List list(String cursor) throws java.io.IOException

Lists changes.

Parameters

Name

Description

cursor

Cursor for the current page, which is obtained from nextCursor in the previous response or using the getStartCursor method. The server returns a maximum of 100 changes for each query request. If there are more than 100 changes, the cursor needs to be set to nextCursor for a new change notification. This process repeats until nextCursor in the response is empty, which indicates that all changes have been returned.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Changes.List

A Drive.Changes.List object.

[h2]subscribe

Method

public Drive.Changes.Subscribe subscribe(String cursor, Channel content) throws java.io.IOException

Subscribes to changes of all files and folders. If any change is detected, a callback notification is sent to the API caller.

Parameters

Name

Description

cursor

Cursor for the current page, which is obtained from nextCursor in the previous response or using the getStartCursor method.

content

Channel to be subscribed to.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

Drive.Changes.Subscribe

A Drive.Changes.Subscribe object.