chore: update specs and examples

This commit is contained in:
Chirag Aggarwal
2025-05-16 09:32:05 +00:00
parent d2d126e89b
commit 88f1fa6c67
200 changed files with 718 additions and 1987 deletions
@@ -13,7 +13,7 @@ avatars.getBrowser(
Browser.AVANT_BROWSER, // code
0, // width (optional)
0, // height (optional)
0, // quality (optional)
-1, // quality (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -13,7 +13,7 @@ avatars.getCreditCard(
CreditCard.AMERICAN_EXPRESS, // code
0, // width (optional)
0, // height (optional)
0, // quality (optional)
-1, // quality (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -13,7 +13,7 @@ avatars.getFlag(
Flag.AFGHANISTAN, // code
0, // width (optional)
0, // height (optional)
0, // quality (optional)
-1, // quality (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -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();