/** * Get the next Presence event * * @param StringBuilder username the name of the user * @param uint usernameCapacity the unsigned integer string capacity * @param StringBuilder message the message from the user * @param int presence pass the presence integer value by reference * @return zero upon success, otherwise an error code is returned. */ public static int getNextPresenceEvent(StringBuilder username, uint usernameCapacity, out int presence) { if (RuntimePlatform.OSXEditor == Application.platform || RuntimePlatform.OSXPlayer == Application.platform) { return(ControllerInterface_desktop.getNextPresenceEvent(username, usernameCapacity, out presence)); } else if (RuntimePlatform.IPhonePlayer == Application.platform) { return(ControllerInterface_mobile.getNextPresenceEvent(username, usernameCapacity, out presence)); } presence = -1; return(-1); }