PlatformLinks class
What a project's iOS and Android config says about incoming links.
Read from the files on disk, not from the running app: the platform half
of a deep link is decided at build time, and metro live:run deeplink
can't reach it any other way.
Constructors
Properties
- androidFound → bool
-
Whether
AndroidManifest.xmlwas there to read.final -
androidHosts
→ List<
String> -
Hosts from the same intent filters, for App Links.
final
-
androidSchemes
→ List<
String> -
Schemes from the
VIEWintent filters inAndroidManifest.xml.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
iosDomains
→ List<
String> -
Universal Link domains from the
applinks:entitlements.final - iosFound → bool
-
Whether
Info.plistwas there to read.final -
iosSchemes
→ List<
String> -
Custom URL schemes from
CFBundleURLTypesinInfo.plist.final - isEmpty → bool
-
Whether either platform declares anything at all.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schemes
→ List<
String> -
Every scheme either platform accepts, without duplicates.
no setter
Methods
-
accepts(
String scheme) → bool -
Whether
uri's scheme is declared by either platform. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The
--jsonrepresentation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
read(
String root) → PlatformLinks -
Reads the iOS and Android config of the project at
root.