DVFileAssociations class
Registering this application as the handler for its own file types.
Constructors
- DVFileAssociations()
-
const
Properties
- canPick → bool
-
Whether pick has a picker to show here.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
opened
→ Stream<
DVOpenedFile> -
Every file the application is opened with or shared: at launch, while
it is running, and from pick. A file that arrived before anything
listened goes to the first listener.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supported → bool
-
Whether this platform can register at run time.
no setter
Methods
-
handlerFor(
String extension) → Future< String?> -
Which application opens
extensionnow, as the platform names it, or null when nothing does. -
initial(
) → Future< List< DVOpenedFile> > - The files the application was started with; empty when it was started from its icon. Also delivered on opened.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pick(
{List< DVFileType> types = const <DVFileType>[], bool multiple = false}) → Future<List< DVOpenedFile> > -
Asks the person for files with the platform's own picker, and hands
what they choose to opened as well as returning it -- the fallback
for a target nothing can open the application from, through the same
handler as everywhere else.
typesnarrows the picker where it can be narrowed. Cancelling answers an empty list. -
register(
List< DVFileType> types, {List<String> schemes = const <String>[]}) → Future<bool> -
Registers
types, and anyschemesthe application answers, for the user running it. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
List< DVFileType> types, {List<String> schemes = const <String>[]}) → Future<bool> - Takes them back off, for the same user.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited