ClientInfo

 class 
 ClientInfo 

Direct use of ClientInfo is not supported.

Information about the client package that is using DTDI.

Summary

Public constructors

<init> ( originatingPackageName : String , clientPackageVersion : String , clientPackageBuildType : Int , dtdiSdkVersionCode : String , receivingPackageHash : String ? =  null)

Direct use of ClientInfo is not supported.

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.

Properties

BuildType of the package using DTDI.

Version of the package using DTDI.

Version code of the DTDI SDK.

Name of the package using DTDI.

The first byte of SHA256 of the alternative 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

clientPackageVersion

 val 
 clientPackageVersion 
 : 
  String 
 

Version of the package using DTDI.

dtdiSdkVersionCode

 val 
 dtdiSdkVersionCode 
 : 
  String 
 

Version code of the DTDI SDK.

originatingPackageName

 val 
 originatingPackageName 
 : 
  String 
 

Name of the package using DTDI.

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.

Parameters
originatingPackage : String
name of the package that initialates the experience.
altPackage : String
name of the alternative package on the other side of cross app channel.

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.

Create a Mobile Website
View Site in Mobile | Classic
Share by: