Surface
The Surface
class represents an entity for user or system interaction. It is identified by a self-describing URI which is used to fetch the decision propositions from the AJO campaigns. For example, all mobile application surface URIs start with mobileapp://
, followed by app bundle identifier and an optional path.
iOS Interface - Surface
Surface
class is used to create surface instances for requesting propositions in personalization query requests.
Public variables
uri
Unique surface URI string.
Copied to your clipboardpublic let uri: String
Public functions
init
Creates a new surface by appending the given surface path
to the mobile app surface prefix.
Android Interface - Surface
Surface
class is used to create surface objects for requesting propositions in personalization query requests.
Public functions
Parameterized Constructor
Creates a new surface by appending the given surface path
to the mobile app surface prefix.
Android
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(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")
Default Constructor
Creates a new base surface by appending application package name to the mobile app surface prefix mobileapp://
.
Android
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 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()
getUri
Returns this surface's URI as a string.