DVAppLaunch class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Properties
initialLink
→ String ?
The first link -- an argument with a scheme, dartvel://orders/7 or an
https app link -- this process was launched with, or null. What
deepLinks.initial answers on desktop; every link argument is also
delivered on DV.Platform.deepLinks.getLinkStream().
no setter
Static Methods
followLaunchLinks ({required Future <String ? > link (), required Future <void > open (String route ), required TargetPlatform platform , String filesRoute = '/open' })
→ DVLaunchLinkFollower
Opens the launch link after the first frame, and on iOS every link
that arrives while the application runs.
isLink (String argument )
→ bool
Whether argument is a link rather than a route, a file or a flag.
lockPathFor (String appId )
→ String
Where the lock lives for appId: the session's runtime directory
where there is one, else the temp directory.
openLaunchLink ({required Future <String ? > link (), required Future <void > open (String route ), String filesRoute = '/open' })
→ Future <String ? >
Opens whatever route this launch was handed a link to, and answers
with it.
resetForTest ()
→ void
Forgets the initial link. For tests.
routeFor (String argument , {String filesRoute = '/open' })
→ String ?
The route argument asks for, or null when it asks for nothing.
start ({required String appId , required List <String > arguments , required Future <void > open (String route ), String ? lockPath , String filesRoute = '/open' , Duration poll = const Duration(milliseconds: 500) , DVAppLaunchAcquire acquire = DVSingleInstance.acquire })
→ Future <DVAppLaunchResult >
Takes the lock for appId, or hands arguments to the process that
has it. The primary opens its own arguments' routes and, every poll,
whatever later launches forwarded, through open.