mirror of
https://github.com/appwrite/sdk-for-android.git
synced 2026-06-06 19:28:02 +00:00
feat: support for 0.13.0
This commit is contained in:
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.createFile(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]",
|
||||
File("./path-to-files/image.jpg"),
|
||||
new Continuation<Object>() {
|
||||
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.deleteFile(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]"
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.getFileDownload(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]"
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.getFilePreview(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]",
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.getFileView(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]"
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.getFile(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]"
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.listFiles(
|
||||
"[BUCKET_ID]",
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -19,9 +19,8 @@ public class MainActivity extends AppCompatActivity {
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
storage.updateFile(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]",
|
||||
listOf(),
|
||||
listOf()
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user