Class SmartSwitchCallback

java.lang.Object
com.bitheads.braincloud.client.SmartSwitchCallback
All Implemented Interfaces:
IServerCallback
Direct Known Subclasses:
SmartSwitchCallback.SmartSwitchAdvanced, SmartSwitchCallback.SmartSwitchApple, SmartSwitchCallback.SmartSwitchEmail, SmartSwitchCallback.SmartSwitchExternal, SmartSwitchCallback.SmartSwitchFacebook, SmartSwitchCallback.SmartSwitchGoogle, SmartSwitchCallback.SmartSwitchGoogleOpenId, SmartSwitchCallback.SmartSwitchOculus, SmartSwitchCallback.SmartSwitchSteam, SmartSwitchCallback.SmartSwitchTwitter, SmartSwitchCallback.SmartSwitchUltra, SmartSwitchCallback.SmartSwitchUniversal

public class SmartSwitchCallback
extends Object
implements IServerCallback
Smart Switch Authenticate will logout of the current profile, and switch to the new authentication type. In event the current session was previously an anonymous account, the smart switch will delete that profile. Use this function to keep a clean designflow from anonymous to signed profiles
  • Field Details

  • Constructor Details

  • Method Details

    • clearIds

      public void clearIds()
    • serverCallback

      public void serverCallback​(ServiceName serviceName, ServiceOperation serviceOperation, org.json.JSONObject jsonData)
      Description copied from interface: IServerCallback
      The serverCallback() method returns server data back to the layer interfacing with the BrainCloud library.
      Specified by:
      serverCallback in interface IServerCallback
      Parameters:
      serviceName - - name of the requested service
      serviceOperation - - requested operation
      jsonData - - returned data from the server
    • serverError

      public void serverError​(ServiceName in_serviceName, ServiceOperation in_serviceOperation, int in_statusCode, int in_reasonCode, String jsonString)
      Description copied from interface: IServerCallback
      Errors are returned back to the layer which is interfacing with the BrainCloud library through the serverError() callback. A server error might indicate a failure of the client to communicate with the server after N retries.
      Specified by:
      serverError in interface IServerCallback
      Parameters:
      in_serviceName - - name of the requested service
      in_serviceOperation - - requested operation
      in_statusCode - The error status return code (400, 403, 500, etc)
      in_reasonCode - The brainCloud reason code (see reason codes on apidocs site)
      jsonString - The error json string