DeeplinkSource enum
Where a deep link instruction came from.
The two paths into a handler are not equally trusted and a handler cannot
tell them apart from the URI: an osLink is whatever the operating system
was asked to open, so anyone who can send the device a link can craft one,
while a push payload was authored by the server that sent the
notification. A consumer that acts on more than the path (switching teams
off a team_id key, say) reads this to decide whether it may.
Values
- osLink → const DeeplinkSource
-
The operating system opened the app on a Universal Link or App Link.
Attacker-craftable: treat the URI as untrusted input.
- push → const DeeplinkSource
-
The user tapped a push notification, and the payload is the server's own.
- manual → const DeeplinkSource
-
The application asked for the link itself, in code or in a test.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DeeplinkSource> - A constant List of the values in this enum, in order of their declaration.