Go To Console

TPUploadData

TPUploadData

class in TentuPlay.Api / Implemented in:TentuPlay.Api

Description

Class to manually upload the data from a client

If Auto Upload checkbox is checked in TentuPlay Settings, you don’t need to call this method.

Method

TPUploadData.UploadData Upload collected data.

TPUploadData.UploadData

public void UploadData(bool toCheckInterval = true);

Description

Upload collected data.

It returns 1 for success and -1 for failure. If -1 is returned, you will see the following message in the Unity Editor Console in TentuPlay debug mode: TPError||Error while uploading data:: exception_error_message

Parameter

toCheckInterval

If the value is false, UploadData ignores TentuPlaySettings.DeferredSendIntervalSec and upload data.