Class FaceSettings
Namespace: haechi.face.unity.sdk.Runtime
Assembly: cs.temp.dll.dll
Syntax
public class FaceSettings
Properties
Instance
Declaration
public static FaceSettings Instance { get; }
Property Value
Type | Description |
---|---|
FaceSettings | Returns FaceSettings' instance. |
Methods
ApiKey()
Declaration
public string ApiKey()
Returns
Type | Description |
---|---|
String | Return Api key. |
Blockchain()
Declaration
public Blockchain Blockchain()
Returns
Type | Description |
---|---|
Blockchain | Return Blockchain such as Ethereum, Polygon etc. |
Destruct()
Initialize FaceSettings with null instance.
Declaration
public static void Destruct()
Environment()
Declaration
public Profile Environment()
Returns
Type | Description |
---|---|
Profile | Return Profile such as Testnet, Mainnet. |
IframeURL()
Declaration
public string IframeURL()
Returns
Type | Description |
---|---|
String | Returns iframe host url. |
Init(FaceSettings.Parameters)
Initialize FaceSettings with Parameters.
Declaration
public static void Init(FaceSettings.Parameters parameters)
Parameters
Type | Name | Description |
---|---|---|
FaceSettings.Parameters | parameters |
Exceptions
Type | Condition |
---|---|
haechi.face.unity.sdk.Runtime.Exception.AlreadyInitializedException | Throws if FaceSettings is already initialized. |
IsInitialized()
Declaration
public static bool IsInitialized()
Returns
Type | Description |
---|---|
Boolean | Returns true if initialized. |
Network()
Declaration
public BlockchainNetwork Network()
Returns
Type | Description |
---|---|
BlockchainNetwork | Return Blockchain Network such as Sepolia, Mumbai, Ethereum etc. |
Scheme()
Declaration
public string Scheme()
Returns
Type | Description |
---|---|
String | Return Deeplink Scheme |
ServerHostURL()
Declaration
public string ServerHostURL()
Returns
Type | Description |
---|---|
String | Returns server host url. |
SetNetwork(BlockchainNetwork)
Declaration
public void SetNetwork(BlockchainNetwork network)
Parameters
Type | Name | Description |
---|---|---|
BlockchainNetwork | network |
WebviewHostURL()
Declaration
public string WebviewHostURL()
Returns
Type | Description |
---|---|
String | Returns webview client url. |