目录

Class info
public static final class File.ContentExtras extends GenericJson
Class of additional information about file content. The additional information is optional and is not contained in the response.

Nested Class Summary

TypeNameDesc
Static ClassFile.ContentExtras.ThumbnailDeclaration of the File.ContentExtras.Thumbnail class, which is used only when no standard thumbnail can be generated on the server.

Public Constructor Summary

Constructor name

File.ContentExtras() 

Constructor for the File.ContentExtras class.

Public Method Summary

Return typeMethod name
File.ContentExtras

clone()

Clones a File.ContentExtras object.

File.ContentExtras.Thumbnail

getThumbnail()

Obtains the thumbnail of the file.

File.ContentExtras

set(String fieldName, Object value)

Sets the given field value for the given field name.

File.ContentExtras

setThumbnail(Thumbnail thumbnail)

Sets the thumbnail of the file, which is used only when no standard thumbnail can be generated on the server.

Public Constructors

constructor
File.ContentExtras()
Constructs a File.ContentExtras object.

Public Methods

Method
public File.ContentExtras clone()
Clones a File.ContentExtras object.

Return

typedesc
File.ContentExtrasA File.ContentExtras object.
Method


public Thumbnail getThumbnail()

Obtains the thumbnail of the file, which is used only when no standard thumbnail can be generated on the server.

Return

typedesc
File.ContentExtras.ThumbnailA File.ContentExtras.Thumbnail object.
Method


public File.ContentExtras set(String fieldName, Object value)

Sets a custom attribute and its value.

Parameters

Parameter nameParameter desc
fieldNameField name.
valueField value.

Return

typedesc
File.ContentExtrasA File.ContentExtras object.
Method


public File.ContentExtras setThumbnail(Thumbnail thumbnail)

Sets the thumbnail of the file. The thumbnail is set only when the requesting app has the permission to access the file content.

Parameters

Parameter nameParameter desc
thumbnailThumbnail of the file.

Return

typedesc
File.ContentExtrasA File.ContentExtras object.