mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: update specs and examples
This commit is contained in:
@@ -11,6 +11,7 @@ Storage storage = new Storage(client);
|
||||
storage.getFileDownload(
|
||||
"<BUCKET_ID>", // bucketId
|
||||
"<FILE_ID>", // fileId
|
||||
"<TOKEN>", // token (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -14,7 +14,7 @@ storage.getFilePreview(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
ImageGravity.CENTER, // gravity (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
0, // borderWidth (optional)
|
||||
"", // borderColor (optional)
|
||||
0, // borderRadius (optional)
|
||||
@@ -22,6 +22,7 @@ storage.getFilePreview(
|
||||
-360, // rotation (optional)
|
||||
"", // background (optional)
|
||||
ImageFormat.JPG, // output (optional)
|
||||
"<TOKEN>", // token (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -11,6 +11,7 @@ Storage storage = new Storage(client);
|
||||
storage.getFileView(
|
||||
"<BUCKET_ID>", // bucketId
|
||||
"<FILE_ID>", // fileId
|
||||
"<TOKEN>", // token (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user