Package com.bitheads.braincloud.services
Class DataStreamService
java.lang.Object
com.bitheads.braincloud.services.DataStreamService
public class DataStreamService extends Object
Class to handle data stream api calls.
-
Constructor Summary
Constructors Constructor Description DataStreamService(BrainCloudClient client) -
Method Summary
Modifier and Type Method Description voidcustomPageEvent(String eventName, String jsonEventProperties, IServerCallback callback)Creates custom data stream page eventvoidcustomScreenEvent(String eventName, String jsonEventProperties, IServerCallback callback)Creates custom data stream screen eventvoidcustomTrackEvent(String eventName, String jsonEventProperties, IServerCallback callback)Creates custom data stream track eventvoidsubmitCrashReport(String crashType, String errorMsg, String crashJson, String crashLog, String userName, String userEmail, String userNotes, Boolean userSubmitted, IServerCallback callback)Send crash report
-
Constructor Details
-
DataStreamService
-
-
Method Details
-
customPageEvent
public void customPageEvent(String eventName, String jsonEventProperties, IServerCallback callback)Creates custom data stream page event- Parameters:
eventName- Name of eventjsonEventProperties- Properties of eventcallback- The callback handler
-
customScreenEvent
public void customScreenEvent(String eventName, String jsonEventProperties, IServerCallback callback)Creates custom data stream screen event- Parameters:
eventName- Name of eventjsonEventProperties- Properties of eventcallback- The callback handler
-
customTrackEvent
public void customTrackEvent(String eventName, String jsonEventProperties, IServerCallback callback)Creates custom data stream track event- Parameters:
eventName- Name of eventjsonEventProperties- Properties of eventcallback- The callback handler
-
submitCrashReport
public void submitCrashReport(String crashType, String errorMsg, String crashJson, String crashLog, String userName, String userEmail, String userNotes, Boolean userSubmitted, IServerCallback callback)Send crash report- Parameters:
crashType- Identifies the crash category. Developer-defined, can be anything.errorMsg- Short message describing the crash.crashJson- Exception data.crashLog- Client log up until the crash (if available.)userName- Name provided by the user (if provided.)userEmail- Email address to respond to (if provided.)userNotes- Notes provided by the user (if provided.)userSubmitted- User submitted flag.callback- The callback handler
-