Class UploadWidget.Options

  • Enclosing class:
    UploadWidget

    public static class UploadWidget.Options
    extends java.lang.Object
    This 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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.