Class UploadWidget.Options
- java.lang.Object
-
- com.cloudinary.android.uploadwidget.UploadWidget.Options
-
- Enclosing class:
- UploadWidget
public static class UploadWidget.Options extends java.lang.ObjectThis class is used to define the required launch behaviour of the upload widget.
-
-
Constructor Summary
Constructors Constructor Description Options(UploadWidget.Action action, java.util.Collection<android.net.Uri> uris)Construct a new instance to use when launching the upload widget activity.
-
-
-
Constructor Detail
-
Options
public Options(@NonNull UploadWidget.Action action, @Nullable java.util.Collection<android.net.Uri> uris)Construct a new instance to use when launching the upload widget activity.- Parameters:
action- Indicates the widget how to handle the selected files. This also affects the result received later in onActivityResult. When the action used is DISPATCH or START_NOW the widget returns a list of request IDs. When the action is NONE, the widget returns results that needs to be processed into UploadRequest, allowing customization before dispatching/starting.uris- A list of Uris of files to display and upload.
-
-