Swift
Syntax
Copied to your clipboardpublic init(path: String)
- path is a string representation for the surface path.
Example
Copied to your clipboard// Creates a surface instance representing a banner within homeView view in my mobile application.let surface = Surface(path: "homeView#banner")
Java
Syntax
Copied to your clipboardpublic Surface(final String path)
- path is a string containing the surface path.
Example
Kotlin
Copied to your clipboard// Creates a surface instance representing a banner view within homeActivity in my mobile application.val surface = Surface("homeActivity#banner")
Java
Copied to your clipboard// Creates a surface instance representing a banner view within homeActivity in my mobile application.final Surface surface = new Surface("homeActivity#banner")
Java
Syntax
Copied to your clipboardpublic Surface()
Example
Kotlin
Copied to your clipboard// Creates a new base surface by appending application package name to the mobile app surface prefix mobileapp://val surface = Surface()
Java
Copied to your clipboard// Creates a new base surface by appending application package name to the mobile app surface prefix mobileapp://final Surface surface = new Surface()
Java
Syntax
Copied to your clipboardpublic String getUri()
Example
Kotlin
Copied to your clipboardval surface = Surface("homeActivity#banner")val uri = surface.uri
Java
Copied to your clipboardfinal Surface surface = new Surface("homeActivity#banner")final String uri = surface.getUri()