CallingAppInfo.Origin 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.
Returns the origin of the calling app if set otherwise returns null.
public string? Origin { [Android.Runtime.Register("getOrigin", "()Ljava/lang/String;", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getOrigin", "()Ljava/lang/String;", "", ApiSince=34)>]
member this.Origin : string
Property Value
- Attributes
Remarks
Returns the origin of the calling app if set otherwise returns null. This value is set only if the origin is different than that of the calling app, and should be expected from privileged callers(browsers) only when making request on behalf of other applications.
Android system makes sure that only applications that poses the permission android.Manifest.permission.CREDENTIAL_MANAGER_SET_ORIGIN
can set the origin on the incoming android.credentials.GetCredentialRequest
or android.credentials.CreateCredentialRequest
.
Java documentation for android.service.credentials.CallingAppInfo.getOrigin()
.
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.