Show / Hide Table of Contents

Class API

Methods for library initialization.

Inheritance
System.Object
API
Namespace: Tanvas.TanvasTouch
Assembly: Tanvas.TanvasTouch.dll
Syntax
public static class API : object

Methods

GetLastError()

Can be called at any time to get an error code and message.

Declaration
public static ErrorCode GetLastError()
Returns
Type Description
ErrorCode

ErrorCode

Initialize(String)

Initializes the TanvasTouch library. This must be called before instantiating any resources.

Declaration
public static bool Initialize(string engine_name = null)
Parameters
Type Name Description
System.String engine_name

Reserved.

Returns
Type Description
System.Boolean

Initialize(String, String, String)

Initialize the TanvasTouch library. This must be called before instantiating any resources.

Declaration
public static Boolean Initialize(string app_id, string license_key, string engine_name = null)
Parameters
Type Name Description
System.String app_id
System.String license_key
System.String engine_name
Returns
Type Description
Boolean

True if the library was intialized.

Remarks

This method exists for backwards compatibility and was deprecated in v4.0.0. It should not be used in new code.

Back to top Generated by DocFX