| class info |
| public class Drive.Changes.GetStartCursor extends DriveRequest<StartCursor> |
| Drive.Changes.GetStartCursor class. |
| Constructor name |
Drive.Changes.GetStartCursor() Constructor for the Drive.Changes.GetStartCursor class. |
| Return type | Method name |
| Drive.Changes.GetStartCursor | setFields(String fields) Sets the fields to be contained in a response. |
| Drive.Changes.GetStartCursor | set(String parameterName, Object value) Sets the given parameter value for the given parameter name. |
| StartCursor | execute() Sends an HTTP request and returns the object to be converted. |
| Drive.Changes.GetStartCursor | setForm(String form) Sets the response data format. |
| Drive.Changes.GetStartCursor | setPrettyPrint(Boolean prettyPrint) Sets whether to return a response containing indentations and line-wrapping breaks. |
| Drive.Changes.GetStartCursor | setQuotaId(String quotaId) Sets a string of less than 40 characters to identify a user. The string is used by the server to restrict the user's API calls. |
| constructor |
| protected Drive.Changes.GetStartCursor() |
| Constructs a Drive.Changes.GetStartCursor object. |
| Method |
| public Drive.Changes.GetStartCursor setFields(String fields) |
| Sets the fields to be contained in a response. |
Parameters
| Parameter name | Parameter desc |
| fields | Fields (attributes of a StartCursor object) to be contained in a response, for example, category and startCursor. If fields is set to asterisk (*), all attributes of a StartCursor object are returned. |
Return
| type | desc |
| Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
| Method |
public Drive.Changes.GetStartCursor set(String parameterName, Object value) |
| Sets the given parameter value for the given parameter name. |
Parameters
| Parameter name | Parameter desc |
| parameterName | Parameter name. |
| value | Parameter value. |
Return
| type | desc |
| Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
| Method |
public Drive.Changes.GetStartCursor setForm(String form) |
| Sets the response data format. |
Parameters
| Parameter name | Parameter desc |
| form | Response data format. The default data format is JSON, and only this format is supported currently. |
Return
| type | desc |
| Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
| Method |
public Drive.Changes.GetStartCursor setPrettyPrint(Boolean prettyPrint) |
| Sets whether to return a response containing indentations and line-wrapping breaks. |
Parameters
| Parameter name | Parameter desc |
| prettyPrint | Indicates whether to return a response containing indentations and line-wrapping breaks. The value is of the Boolean type. |
Return
| type | desc |
| Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
| Method |
public Drive.Changes.GetStartCursor setQuotaId(String quotaId) |
| Sets a string of fewer than 40 characters to identify a user. The string is used by the server to restrict the user’s API calls. |
Parameters
| Parameter name | Parameter desc |
| quotaId | A string of less than 40 characters to identify a user. The string is used by the server to restrict the user's API calls. |
Return
| type | desc |
| Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
| Method |
public T execute() throws IOException |
| Sends an HTTP request and returns the object to be converted. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| StartCursor | The Drive.Changes.GetStartCursor class extends DriveRequest<StartCursor>. Therefore, the return result of the execute() method is encapsulated as a DriveRequest<StartCursor> object. |
Sample Code
- private void getStartCursorChange(Drive drive) {
- try {
- Drive.Changes.GetStartCursor getStartCursor = drive.changes().getStartCursor();
- StartCursor startCursor = getStartCursor.execute();
- } catch (Exception e) {
- Log.e(TAG, "getStartCursor error: " + e.toString());
- }
- }