AppContextResponse

class AppContextResponse

Helper class to provide an app context response to Link to Windows.

This class should be used to provide context change responses.

Constructors

AppContextResponse
Link copied to clipboard
fun AppContextResponse()

Types

Companion
Link copied to clipboard
object Companion

Functions

addBrowserContext
Link copied to clipboard
fun addBrowserContext(timestamp: Long, webUri: Uri, title: String, favIcon: ByteArray?)
Adds browsing history context for the app.
setBrowserContextEmptyFlag
Link copied to clipboard
fun setBrowserContextEmptyFlag(isEmpty: Boolean)
Sets browser context empty flag.
setDescription
Link copied to clipboard
fun setDescription(description: String)
Description for the current context.
setPackageName
Link copied to clipboard
fun setPackageName(packageName: String)
Sets the package of the application the context is for.
setResponseContextType
Link copied to clipboard
fun setResponseContextType(contextType: Int)
Sets response context type.
setTaskId
Link copied to clipboard
fun setTaskId(taskId: Long)
Provides the task id for the context (from the main activity's getTaskId() call).
setWebUri
Link copied to clipboard
fun setWebUri(uri: Uri)
Web URI (http:// or https://)that represents the latest web context for the task.
setWindowsUri
Link copied to clipboard
fun setWindowsUri(uri: Uri)
Sets the windows desktop URI that will open the app on Windows if installed.

Properties

contentValues
Link copied to clipboard
val contentValues: ContentValues