public final class AVFile extends AVObject
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CLASS_NAME |
acl, className, endpointClassName, KEY_ACL, KEY_CLASSNAME, KEY_CREATED_AT, KEY_OBJECT_ID, KEY_UPDATED_AT, logger, objectId, operations, serverData, totallyOverwrite, UUID_LEN| 限定符 | 构造器和说明 |
|---|---|
|
AVFile() |
|
AVFile(String name,
byte[] data) |
|
AVFile(String name,
File localFile) |
|
AVFile(String name,
String url) |
|
AVFile(String name,
String url,
Map<String,Object> metaData) |
protected |
AVFile(String name,
String url,
Map<String,Object> metaData,
boolean external) |
abortOperations, add, addAll, addAllUnique, addNewOperation, addUnique, bitAnd, bitOr, bitXor, cast, containsKey, createWithoutData, createWithoutData, decrement, decrement, delete, deleteAll, deleteAllInBackground, deleteEventually, deleteInBackground, extractCascadingObjects, fetch, fetch, fetchIfNeeded, fetchIfNeededInBackground, fetchInBackground, fetchInBackground, generateACLFromServerData, generateChangedParam, getACL, getAVFile, getAVGeoPoint, getAVObject, getBoolean, getBytes, getCascadingSaveObjects, getClassName, getCreatedAt, getCreatedAtString, getDate, getDouble, getInt, getJSONArray, getJSONObject, getList, getLong, getNumber, getObjectId, getQuery, getRelation, getRequestMethod, getRequestRawEndpoint, getServerData, getString, getUpdatedAt, getUpdatedAtString, getUuid, has, hasCircleReference, internalClassName, internalId, isDataAvailable, isFetchWhenSave, onDataSynchronized, onSaveFailure, onSaveSuccess, parseAVObject, refresh, refresh, refreshInBackground, refreshInBackground, registerSubclass, removeAll, resetAll, resetByRawData, resetServerData, save, saveAll, saveAllInBackground, saveEventually, saveInBackground, setACL, setClassName, setFetchWhenSave, setObjectId, toJSONObject, toJSONString, toString, validFieldName, verifyInternalIdpublic AVFile()
public AVFile(String name, byte[] data)
public static io.reactivex.Observable<AVFile> withObjectIdInBackground(String objectId)
public String getName()
public void setName(String name)
public void clearMetaData()
public int getSize()
public String getMimeType()
public void setMimeType(String mimeType)
public String getKey()
public String getBucket()
public String getUrl()
public String getProvider()
public String getThumbnailUrl(boolean scaleToFit, int width, int height)
scaleToFit - width - height - getThumbnailUrl(boolean, int, int, int, String)public String getThumbnailUrl(boolean scaleToFit, int width, int height, int quality, String fmt)
public void saveInBackground(ProgressCallback progressCallback)
public io.reactivex.Observable<AVFile> saveInBackground()
saveInBackground 在类中 AVObjectpublic byte[] getData()
public InputStream getDataStream()
public static AVFile withAbsoluteLocalPath(String name, String absoluteLocalFilePath) throws FileNotFoundException
public static AVFile withFile(String name, File file) throws FileNotFoundException
Copyright © 2019. All rights reserved.