AssistContent.SessionTransferUri Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the content's session transfer web URI as per
#setSessionTransferUri(android.net.Uri)
, or null if there is none. -or- This method can be used to provide a Uri
which will be utilized when transitioning a
user's session to another surface.
public virtual Android.Net.Uri? SessionTransferUri { [Android.Runtime.Register("getSessionTransferUri", "()Landroid/net/Uri;", "GetGetSessionTransferUriHandler", ApiSince=36)] get; [Android.Runtime.Register("setSessionTransferUri", "(Landroid/net/Uri;)V", "GetSetSessionTransferUri_Landroid_net_Uri_Handler", ApiSince=36)] set; }
[<get: Android.Runtime.Register("getSessionTransferUri", "()Landroid/net/Uri;", "GetGetSessionTransferUriHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setSessionTransferUri", "(Landroid/net/Uri;)V", "GetSetSessionTransferUri_Landroid_net_Uri_Handler", ApiSince=36)>]
member this.SessionTransferUri : Android.Net.Uri with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Return the content's session transfer web URI as per #setSessionTransferUri(android.net.Uri)
, or null if there is none.
Java documentation for android.app.assist.AssistContent.getSessionTransferUri()
.
Property setter documentation:
This method can be used to provide a Uri
which will be utilized when transitioning a user's session to another surface.
If provided, instead of using the URI provided in #setWebUri
, the "Open in browser" feature will use this URI to transition the current session from one surface to the other. Apps may choose to encode session or user information into this URI in order to provide a better session transfer experience. However, while this URI will only be available to the system and not other applications, developers should not encode authentication credentials into this URI, because it will be surfaced in the browser URL bar and may be copied and shared from there.
When providing this URI, developers should still continue to provide #setWebUri
for backwards compatibility with features such as recents URL sharing which facilitate link sharing with other users and would not benefit from a session-transfer URI.
Java documentation for android.app.assist.AssistContent.setSessionTransferUri(android.net.Uri)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.