ClientInfo
class ClientInfo
Direct use of ClientInfo
is not supported.
Information about the client package that is using DTDI.
Summary
Companion functions
fromAltPackageName
( context
:
Context
, originatingPackage
:
String
, altPackage
:
String
)
Builds a ClientInfo for an alternative package in a cross app experience.
fromPackageName
( context
:
Context
, packageName
:
String
?
)
Builds a ClientInfo for a specific package name.
Public constructors
<init>
ClientInfo (
originatingPackageName : String ,
clientPackageVersion : String ,
clientPackageBuildType : Int ,
dtdiSdkVersionCode : String ,
receivingPackageHash : String ? = null )
Direct use of ClientInfo
is not supported.
Information about the client package that is using DTDI.
Properties
clientPackageBuildType
val clientPackageBuildType : Int
BuildType of the package using DTDI. Set to Int to resolve compiler issue
receivingPackageHash
val receivingPackageHash : String ?
The first byte of SHA256 of the alternative package name. Only set on the receiving device during a cross app experience.
Companion functions
fromAltPackageName
fun fromAltPackageName (
context : Context ,
originatingPackage : String ,
altPackage : String
) : ClientInfo ?
Builds a ClientInfo for an alternative package in a cross app experience.
fromPackageName
fun fromPackageName (
context : Context ,
packageName : String ?
) : ClientInfo ?
Builds a ClientInfo
for a specific package name. Within an SDK, the packageName is the
packageName of the application using the SDK. Within Google Play services, the packageName is the callingPackage
and not the package name of Google Play services.

