HIVE SDK for Unity3D

Static Public Member Functions | List of all members
hive.DataStore Class Reference

Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information. More...

Static Public Member Functions

static void set (string key, string value, onSet listener)
 Add Data

 
static void set (Dictionary< string, string > data, onSet listener)
 Add Data

 
static void get (string key, onGet listener)
 Get one of my data

 
static void getMyData (onMyData listener)
 Get all my data

 
static void getUsersData (string key, onUsersData listener)
 Get all data using key

 

Detailed Description

Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information.

Using this service is a good
solution for the games based on the client or if it needs real-time updates between clients.

Hive Data Store has the following features:

Since
4.15.8

Member Function Documentation

◆ get()

static void hive.DataStore.get ( string key,
onGet listener )
static

Get one of my data

Since
4.15.8

◆ getMyData()

static void hive.DataStore.getMyData ( onMyData listener)
static

Get all my data

Since
4.15.8

◆ getUsersData()

static void hive.DataStore.getUsersData ( string key,
onUsersData listener )
static

Get all data using key

Since
4.15.8

◆ set() [1/2]

static void hive.DataStore.set ( Dictionary< string, string > data,
onSet listener )
static

Add Data

You can add data to the Data Store in one pair of a key-value or multiple pairs of map format at once.
After a request, true or false is returned.

  • IMPORTANT : The key-value needs to be set up in a one-dimensional JSON string that includes a simple string or backslash().
Since
4.15.8

◆ set() [2/2]

static void hive.DataStore.set ( string key,
string value,
onSet listener )
static

Add Data

You can add data to the Data Store in one pair of a key-value or multiple pairs of map format at once.
After a request, true or false is returned.

  • IMPORTANT : The key-value needs to be set up in a one-dimensional JSON string that includes a simple string or backslash().
Since
4.15.8

The documentation for this class was generated from the following file:
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy