PTTClient Class
name | type | attributes | description |
SDKVersion | string | readonly | SDK version information. "1.0.0" |
appVersion | string | | App version information. |
micType | int | | 10:Default, 20:VOIP Mic (Android only), VOIP Mic could be used for only testing. |
playMode | int | | 10: VOIP, 20:MP3, default 10 (Android only) |
playVolume | int | | 0~100, default 100 |
micAmplification | int | | 0~100, default 0 |
playAmplification | int | | 0~100, default 0 |
useLocation | boolean | | Whether to use location |
inputDenoiserEnabled | boolean | | 0 : off, 1 : on, default 0 |
outputDenoiserEnabled | boolean | | 0 : off, 1 : on, default 0 |
inputLPFEnabled | boolean | | 0 : off, 1 : on, default 0 |
inputLPFCutoff | int | | 0~4000, default 1000 |
outputLPFEnabled | boolean | | 0 : off, 1 : on, default 0 |
outputLPFCutoff | int | | 0~4000, default 1000 |
accountName | string | readonly | User account name. After OnConnected, this is possible. |
locationEnabled | boolean | readonly | Use location servie |
useLocation | boolean | | Whether to use location |
voxEnabled | boolean | | Use VOX. This is depended on PTTClient's VoxSensitivity. default : false |
voxSensitivity | int | | vox sensitivity ( 0 ~ 100 ), default 0(Auto) |
bluetoothStatus | int | readonly | 0: Unavailable, 10:Available, 20:Headset Enabled, 23:Button Enabled, 29:Headset+Button Enabled |
pushToTalkButtonType | int | | 0 : Press And Hold, 1 : Toggle |
bluetoothButtonType | int | | 0 : Auto Connect. 1 : CODA Wheel/CODA Click, 2 : SHP-612, 3 : Blu-PTT, 4 : R2Gear, 5 : PTT-U1/U2/U3, 6 : Ahead_1122
iOS support: 0/1/3/4/5/6, Android support: 0/1/2 |
bluetoothButtonName | string | | Bluetooth button name. No implemented |
bluetoothButtonID | string | | Bluetooth button ID to be found. No implemented |
language | string | | ISO 639-1 alpha-2 |
speakerStatus | boolean | readonly | 0 : off, 1 : on |
micToSpeakerEnabled | boolean | | 0 : off, 1 : on (Android only) |
TCPOnlyEnabled | boolean | | 0 : off, 1 : on, it is only applyed at connect |
locationSensitivity | int | | 0 : High 1 : Medium 2 : Low, (Android only) |
autoLocationSendingEnabled | boolean | | 0 : off, 1 : on, (Android only) |
videoHWRenderingEnabled | boolean | | 0 : off, 1 : on, (Windows only) |
Methods |
- int initialize(string LicenseKey)
- void uninitialize()
- int connect(boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, string pushToken, PTTClientEvent* EventHandler)
- int connect(string ServerIP, int ServerPort, boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, string pushToken, PTTClientEvent* EventHandler)
- int connect(boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, int LastOTACustomID,string pushToken, PTTClientEvent* EventHandler)
- int connect(string ServerIP, int ServerPort, boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, int LastOTACustomID,string pushToken, PTTClientEvent* EventHandler)
- int disconnect(boolean Logout)
- int updateProfile(string ProfileAttributesJson)
- int getProfile(string UserID)
- int searchProfile(string Keyword)
- int updateProvision(string ProvisionAttributesJson)
- int updatePresence(string PresenceAttributesJson)
- int updatePhoto(int PhotoType, int PhotoDataLength, byte[] PhotoDataBuffer)
- int getBuddyPhoto(string UserID)
- int getChannels()
- int getChannelInfo(int ChannelID)
- int searchChannel(string Keyword, string Code)
- int getMembers()
- int getGroups()
- int getBuddies()
- int getOrganization()
- int getUsers()
- int getUsers(int OrganizationID)
- int createPTTChannel(string ChannelAttributesJson)
- int subscribePTTChannel(int ChannelID)
- int openPTTChannel(int ChannelID, PTTChannelEvent EventHandler)
- int closePTTChannel(PTTChannel PTTChannelInstance)
- int openGroup(int GroupID, GroupEvent EventHandler)
- int closeGroup(Group GroupInstance)
- int getNotices(int NewsID, int Count)
- int awakeUser(string UserID)
- int awakeUser(int ChannelID, string UserID)
- int setActive(boolean IsActive)
- int setSpeakerPhone(boolean Enable)
- string getCameraList()
- int setCamera(string CameraName)
- int enableBluetooth(type DeviceType)
- int disableBluetooth(type DeviceType)
- int setBluetoothMode(int Mode)
- int getBluetoothMode()
- int startTestVox()
- int stopTestVox()
- VideoChannel openVideoAnnouncerChannel(VideoChannelEvent EventHandler)
- VideoChannel openVideoPlayerChannel(int VideoChannelID, VideoChannelEvent EventHandler)
- int openPTTChannel(VideoChannel VideoChannelInstance)
- int sendPrivateMessage(string ReceiverID, string Message)
- int sendPrivateCustomMessage(string ReceiverID, byte[] DataBuffer, int DataLength)
- void setLocationManager(ILocationManager LocationManager)
- int sendLocationToServer()
- void enableLogging(boolean Net)
- Location getMyLocation()
|
Events |
- void onError(int ErrorCode, string ErrorMesssage)
- void onResult(int Seq, int ResultCode, string ResultMesssage)
- void onProvisioned(string InitialJson)
- void onConnected()
- void onSetup()
- void onDisconnected(int Reason)
- void onProfileUpdated(string ProfileAttributesJson)
- void onProfile(string ProfileAttributeJson)
- void onProfileSearched(string ProfilesJson)
- void onProvisionUpdated(string ProvisionAttributeJson)
- void onPresenceUpdated(string PresenceAttributesJson)
- void onPhotoUpdated(int PhotoChangeNumber)
- void onBuddyPhotoReceived(string UserID, int PhotoType, int PhotoDataLength, byte[] PhotoDataBuffer)
- void onBuddyPhotoReceived(string UserID, string PhotoURL)
- void onChannelCreated(int ChannelID)
- void onChannelUpdated(string ChannelAttributesJson)
- void onChannelDeleted(int ChannelID)
- void onChannelOpened(PTTChannel PTTChannelInstance)
- void onChannels(string ChannelsJson)
- void onChannel(string ChannelAttributesJson)
- void onChannelSearched(string ChannelsJson)
- void onMembers(string MembersJson)
- void onGroupCreated(Group GroupInstance)
- void onGroups(string GroupsJson)
- void onResponseBuddies(string BuddiesJson)
- void onOrganizations(string OrganizationsJson)
- void onUsers(string UsersJson)
- void onBuddyRequested(int GroupID, string RequesterID, string RequesterName)
- void onBuddyAccepted(int GroupID, string UserID, string buddyInfoJson)
- void onBuddyDenied(int ChannelID, string UserID)
- void onSubscribeRequested(int ChannelID, string MemberID, string MemberName)
- void onSubscribeAccepted(int ChannelID, string MemberID, string MemberName)
- void onSubscribeDenied(int ChannelID, string MemberID)
- void onUnsubscribed(int ChannelID, string MemberID, string OwnerID)
- void onSubscribeCanceled(int ChannelID, string MemberID)
- void onInviteRequested(int ChannelID, string channelName, string RequesterID, string RequesterName, string ReceiverID, string ReceiverName)
- void onInvitedAccepted(int ChannelID, string SenderID, string ReceiverID, string ReceiverName)
- void onInvitedDenied(int ChannelID, string RequesterID, string ReceiverID, string ReceiverName)
- void onInvitedCanceled(int ChannelID, string ReceiverID)
- void onNotices(string NoticesJson)
- void onAwakeUser(string UserID)
- void onAwakeChannelUser(int ChannelID, string UserID)
- void onBluetoothStatusChanged(int BluetoothStatus)
- void onVoxDataCaptured(byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp)
- void onPrivateMessageReceived(string SenderID, string SenderName, string Message)
- void onPrivateCustomMessageReceived(string SenderID, string SenderName, byte[] DataBuffer, int DataLength)
- void onSysCommandReceived(int CMD, string Param1, string ParamsJson)
- void onLatency(int Milisecons)
- void onLogingMessage(string Type, string Message)
- void onPreviousChannel()
- void onNextChannel()
- void onSOS()
|
Methods
initialize
int initialize(string LicenseKey) |
LicenseKey | LicenseKey. It can be generated at http://dev.proptt2.com/account-licenses.php |
Return | 0: Possible ID, 0<Fail |
Description | Initialize PTTClient |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
Sample | Initialize("S0000000-C7A378675F4D002E887191FB22DF65EC-81B195BB"); |
uninitialize
void uninitialize() |
Description | Uninitialize PTTClient |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
Sample | Uninitialize(); |
connect
int connect(boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, string PushToken, PTTClientEvent* EventHandler)
int connect(string ServerIP, int ServerPort, boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, string PushToken, PTTClientEvent* EventHandler)
int connect(boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, int LastOTACustomID, string PushToken, PTTClientEvent* EventHandler)
int connect(string ServerIP, int ServerPort, boolean UseSSL, string UserID, string Password, string SecondAuthKey, int LastNewsID, int LastOTACustomID, string PushToken, PTTClientEvent* EventHandler) |
ServerIP | ProPTT2 server's IP |
ServerPort | ProPTT2 server's port. It must be 8080 or 8088. if UseSSL is true, it is 8080, else 8088 |
UseSSL | IMPTT server's SSL option. default TRUE |
UserID | User ID |
Password | Sha512(User's password) |
SecondAuthKey | If "", no used. ex IMEI or Phone number . (Android, Windows 2.1.2 only) |
LastNewsID | Client's last News ID, default is 0. |
LastOTACustomID | Client's last OTACustom ID, default is 0. (Android 2.1.5 and above) |
PushToken | Push Token in App(iOS, Android). Windows is "". |
EventHandler | Event Handler to receive events |
Return | 0:Call Success, 0<ErrorCode |
Expected Events | onProvisioned()->onConnected()->onSetup()->onChannels->onMembers()->onGroups()->onBuddies()->onPresenceUpdated()->onPresenceUpdated() |
Description | Connect to ProPTT2 server system |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
disconnect
int disconnect(boolean Logout) |
Logout | if true, the login session will be logged out. |
Return | 0:Call Success, 0<ErrorCode |
Expected Events | onDisconnected() |
Description | Disconnect from ProPTT2 server system |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
updateProfile
int updateProfile(string ProfileAttributesJson) |
ProfileAttributesJson | Profile's Attributes. |
Return | Request Sequence ID. If less then 0, ErrorCode |
Expected Events | onProfileUpdated |
Description | Update user's profile attributes |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< ProfileAttributesJson >
field | type | Description | Default | C | R | U | D |
UserID | string | User's ID | | M | M | | |
Name | string | User's name | | M | M | O | |
Password | string | Sha512(password). It is for just update. | | M | | O | |
Type | string | 'N'ormal, 'A'sp, 'P'ackage | | M | O | | |
Email | string | User's email | | M | O | O | |
ExpireDate | string | Paid datetime | | | O | | |
PhoneNumber | string | ex)821012341234 | | O | O | O | |
Nickname | string | URLEncode(User’s Nickname) (MAX 255char). | | O | M | O | |
StatusText | stirng | URLEncode(User’s StatusText) (MAX 255char) | | | M | O | |
VAS | stirng | User's Option of the Value-Added Service set to a digits of string if value is "1", the option is enabled. otherwise disabled. if empty is all enable. (0:AwakeUser, 1: InviteUser, 2: SubscribeChannel, 3: AddBuddy, 4:VideoPTT, 5: AwakeChannel) | | | O | O | |
Visible | int | Whether to allow for searching by another user | | | O | O | |
Language | string | ISO 639-1 alpha-2 | | O | O | O | |
getProfile
int getProfile(string UserID) |
UserID | User ID |
Return | Request Sequence ID. If less then 0, ErrorCode |
Expected Events | onProfile() |
Description | get user's profile |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
searchProfile
int searchProfile(string Keyword) |
Keyword | Search keyword, "" is not possible. |
Return | Request Sequence ID. If less then 0, ErrorCode |
Expected Events | onProfileSearched() |
Description | Search profiles by keyword. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
updateProvision
int updateProvision(string ProvisionAttributesJson) |
ProvisionAttributesJson | Provision's attributes |
Return | Request Sequence ID. If less then 0, ErrorCode |
Description | Update user's provision |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< ProvisionAttributesJson >
field | type | Description | Default | C | R | U | D |
EnableVideoPTT | boolean | Use video on PTT | | | O | O | |
EnableHDAudioPTT | boolean | Use HD audio on PTT | | | O | O | |
updatePresence
int updatePresonce(string PresenceAttributesJson) |
PresenceAttributesJson | Presence's attributes |
Return | Request Sequence ID. If less then 0, ErrorCode |
Expected Events | onUpdatePresence() |
Description | Update user's presence |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< PresencenAttributesJson >
field | type | Description | Default | C | R | U | D |
Status | int | 0:Offline,1:Online,2:Busy | | | O | O | |
updatePhoto
int updatePhoto(int PhotoType, int PhotoDataLength, byte[] PhotoDataBuffer)
int updatePhoto(string FilePath) |
PhotoType | Photo Type (20: BMP, 31: JPEG, 32 PNG) |
PhotoDataLength | Data size |
PhotoDataBuffer | Buffer of data |
FilePath | Path of photo |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onPhotoUpdated |
Description | Update own photo picture size should be less than 320 x 320 |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getBuddyPhoto
int getBuddyPhoto(string UserID) |
UserID | User ID to get photo. |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onBuddyPhotoReceived |
Description | Request to get photo |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getChannels
int getChannels() |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onChannels |
Description | Request channel list |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getChannelInfo
int getChannelInfo(int ChannelID) |
ChannelID | Channel's ID |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onChannel |
Description | Request channel info |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
searchChannel
int searchChannel(string Keyword, string Code) |
Keyword | Search keyword, "" is not possible. |
Code | Search Code, "" is not possible. |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onChannelSearched |
Description | Search channels by keyword or code. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getMembers
int getMembers()
int getMembers(int ChannelID) |
ChannelID | Channel's ID to get members |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onMembers |
Description | Request members of channels |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getGroups
int getGroups() |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | OnGroups()->onBuddies() |
Description | Request BuddyGroups |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getBuddies
int getBuddies()
int getBuddies(int GroupID) |
GroupID | Group's ID to get buddies |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onBuddies() |
Description | Request Buddy list |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getOrganizations
int getOrganization() |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onOrganizations |
Description | Request organizations |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getUsers
int getUsers()
int getUsers(int OrganizationID) |
OrganizationID | Organization's ID to get users |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onUsers |
Description | Request user list |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
createPTTChannel
int createPTTChannel(string ChannelAttributesJson) |
ChannelAttributesJson | Channel's attributes |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onChannelCreated |
Description | Create PTTChannel This method is for only app srvice. You can not use it for server package and cloud service. Don't use it. System could be broken. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< ChannelAttributesJson >
field | type | Description | Default | C | R | U | D |
No | string | Channel number or code | | | M | O | |
ChannelName | string | URLEncode(Channel name) | | M | M | O | |
ChannelType | string | 'G'roup,'1':1 | | M | M | | |
IsRecordable | boolean | Is Recordable | true | M | O | O | |
TOT | int | Channel’s TOT | 30 | M | O | O | |
IsOwner | boolean | Channel’s owner | | | O | | |
IsEncrypted | boolean | Is Encrypted | false | O | O | O | |
Description | string | URLEncode(Description | | O | O | O | |
Notification | string | URLEncode(Notification) | | O | O | O | |
Function | string | Function name | | | O | | |
Status | int | Status joined the Channel | | | | | |
subscribePTTChannel
int subscribePTTChannel(int ChannelID)
int subscribe(int ChannelID, string InvitationCode) |
ChannelID | Channel ID to subscribe |
InvitationCode | If user is invited, user has the invitation code. |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Subscribe to channel. This method is for only app srvice. You can not use it for server package and cloud service. Don't use it. System could be broken. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
openPTTChannel
int openPTTChannel(int ChannelID, PTTChannelEvent EventHandler) |
ChannelID | Channel ID to open |
EventHandler | Event handler to receive events |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onChannelOpened |
Description | Open PTT channel instance |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
closePTTChannel
int closePTTChannel(PTTChannel PTTChannelInstance) |
PTTChannelInstance | PTTChannel Instance to close |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Description | Close PTT channel instance |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
openGroup
int openGroup(int GroupID, GroupEvent EventHandler) |
GroupID | Group's ID to open |
EventHandler | Event handler to receive events |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onGroupOpened |
Description | Open Buddy Group |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
closeGroup
int closeGroup(Group GroupInstance) |
GroupInstance | Group instance to be closed |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Description | Close Group |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getNotices
int getNotices(int NewsID, int Count) |
NewsID | First Notice(News)'s ID to get |
Count | Count to get |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | onNotices |
Description | Request Notice list |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
awakeUser
int awakeUser(string UserID) |
UserID | User ID to receive notify |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Request to send Awake notify |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
awakeChannelUser
int awakeUser(int ChannelID, string UserID) |
ChannelID | Channel ID to request |
UserID | User ID to receive notify |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Request to send Awake notify to Channel User |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
setActive
int setActive(boolean IsActive) |
IsActive | Is Active |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | set app staus. default active |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
setSpeakerPhone
int setSpeakerPhone(boolean Enable) |
Enable | Use speaker phone |
Return | 0:Success, 0<ErrorCode |
Description | Use speaker phone. default false |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
getCameraList
string getCameraList() |
Return | camera list seperated by ',' |
Expected Events | |
Description | get camera list |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
setCamera
int setCamera(string CameraName) |
CameraName | Camera Name to be used |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Use camera. default face camera |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
enableBluetooth
int enableBluetooth(type DeviceType) |
DeviceType | Android, IOS : int
20:Headset, 23:Button, 29:Headset+Button
Windows : string, bluetooth Port Name
|
Return | 0:Success, 0<ErrorCode |
Expected Events | onBluetoothStatusChanged |
Description | Use bluetooth device |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
disableBluetooth
int disableBluetooth(type DeviceType) |
DeviceType | Android, IOS : int
20:Headset, 23:Button, 29:Headset+Button
Windows : string, bluetooth Port Name
|
Return | 0:Success, 0<ErrorCode |
Expected Events | onBluetoothStatusChanged |
Description | Disable bluetooth device |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
setBluetoothMode
int setBluetoothMode(int Mode) |
Mode | 0 : None (default)
10 : Battery Save Mode |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Change Bluetooth Mode
default 0 mode always works bluetooth Headset
if you enableBluetooth "Heaset" or "Headset + Button"
If you set Battery Save Mode, Bluetooth Headset only works
in channel Locked if you enableBluetooth "Heaset" or "Headset + Button"
|
Android SDK | 2.1.1 |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported yet |
getBluetoothMode
int getBluetoothMode() |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | get current Bluetooth mode |
Android SDK | 2.1.1 |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported yet |
startTestVox
int startTestVox() |
Return | 0:Success, 0<ErrorCode |
Description | Use bluetooth device |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | Not implemented |
Linux SDK | Not supported yet |
stopTestVox
int stopTestVox() |
Return | 0:Success, 0<ErrorCode |
Expected Events | |
Description | Disable bluetooth device |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | Not implemented |
Linux SDK | Not supported yet |
openVideoAnnouncerChannel
VideoChannel openVideoAnnouncerChannel(VideoChannelEvent EventHandler) |
EventHandler | Event handler to receive events |
Return | Opened Video Channel's Instance |
Expected Events | |
Description | Open Video channel instance for announcer |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
openVideoPlayerChannel
VideoChannel openVideoPlayerChannel(int VideoChannelID, VideoChannelEvent EventHandler) |
VideoChannelID | Video Channel's ID to join |
EventHandler | Event handler to receive events |
Return | Opened Video Channel's Instance |
Expected Events | |
Description | Open Video channel instance to join |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
closeVideoChannel
int closeVideoChannel(VideoChannel VideoChannelInstance) |
VideoChannelInstance | Video Channel Instance to close |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Close Video channel instance |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
sendPrivateMessage
int sendPrivateMessage(string ReceiverID, string Message) |
ReceiverID | Receiver ID to be received a message. |
Message | Max 200 characters |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Send Message to Receiver |
Server version | 1.2.x~ |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
sendPrivateCustomMessage
int sendPrivateCustomMessage(string ReceiverID, byte[] DataBuffer, int DataLength) |
ReceiverID | Receiver ID to be received a message. |
DataBuffer | Buffer of data |
DataLength | Data size ( Max 30k ) |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Send a CustomMessage to Receiver. |
Server version | 1.2.x~ |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
setLocationManager
void setLocationManager(ILocationManager LocationManager) |
LocationManager | LocationManager instance. |
Expected Events | |
Description | Can be use for external location device. |
Android SDK | 2.1.1 |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported yet |
sendLocationToServer
int sendLocationToServer() |
Return | Request Sequence ID. If less then 0, ErrorCode. |
Expected Events | |
Description | Can be Send location information to server. |
Android SDK | 2.1.1 |
iOS SDK | Not supported |
Windows SDK | 2.1.1 (C++ only) |
Linux SDK | Not supported yet |
enableLogging
void enableLogging(boolean Net) |
Net | Net logging on/off |
Expected Events | |
Description | Enable logging. |
Android SDK | 2.1.1 |
iOS SDK | Not supported |
Windows SDK | Not implemented |
Linux SDK | Not supported yet |
getMyLocation
Location getMyLocation() |
Description | Get current device's location. |
Android SDK | 2.1.3 |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported |
Events
onError
void onError(int ErrorCode, string ErrorMesssage) |
ErrorCode | Error code. see Main 6 |
ErrorMesssage | Error message |
Description | Errer event |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onResult
void onResult(int Seq, int ResultCode, string ResultMesssage) |
Seq | Requested Sequence ID |
ResultCode | Error code. see Main 7 |
ResultMesssage | Error message |
Description | Result event for request |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onProvisioned
void onProvisioned(string InitialJson) |
InitialJson | |
Description | Connected to server. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< InitialJson >
field | type | Description | Default |
UserName | string | User's name In case of guest, name is ''. | |
NationCode | string | User's pysical location. ISO 3166-1 alpha-2 | |
NewNotificationCount | int | Notification count after LastNotificationID | |
LastAppVersion | string | Last App version | |
UserEmail | string | User's email | |
CheckedEmail | boolean | Is verified email? | false |
ExpireTime | string | Expire Time(GMT0) , ex) 2015-05-21 20:10:12 | Unlimit |
MinAppVersion | string | Minimum App version | 1.0.0 |
UpgradeURL | string | "store" : app store URL : visit web | store |
EnableVideoSharing | boolean | enable video sharing | false |
EnablePhotoSharing | boolean | enable photo sharing | false |
EnableGroupChannel | boolean | enable to create group PTT channel.(for Cloud/Package) | false |
EnableDispatching | boolean | enable dispatching service for Dispatcher | false |
EnablePush | boolean | enable push feature | false |
RequiredLocation | boolean | enable location sending | false |
FAQURL | string | URL : visit web | PC: http://www.proptt.com/xx/faq.htm
smart device http://www.proptt.com/xx/mfaq.htm xx means language code. ex) 'en', 'ko', 'zh' |
Homepage | string | URL : visit web | www.proptt.com |
LogoID | int | If it is not 0 and not same with local LogoID, must download it | ProPTT logo |
ProvisionToken | string(64) | User's permission value
* This is below.
| |
ServerVersion | string | Server's version | |
< ProvisionToken >
< PTT >
0: First index, reserved
2: VideoPTT, 0:Disable(Receiving available), 1:Sending/Receiving available(Receiver can only receive)
3: 1:1PTT, 0:Disable(Receiving available), 1:Sending/Receiving available
4: MasterPTT: 1:Disable(Receiving available),2:Sending/Receiving available(Owner/Dispatcher can send it)
< VideoShare >
10: VideoShare, 0:Disable, 2:Receiving only,1:Sending/Receiving available
11: VideoRecord, 0:Disable, 1:Enable
< Chat >
20: UseChat, 0:Disable, 2:Receiving only,1:Sending/Receiving available
21: UsePicture, 0:Receiving only,1:Sending/Receiving available
22: UseLocationSending, 0:Receiving only,1:Sending/Receiving available
< Main >
26: Show locations: 0:Disable, 1:Enable
27: Use function: 0:Disable, 1:Enable
< Setup >
33: Use interception: 1:All available(Default OFF),3:All available(Default ON, Owner/Operator only possible)
34: AudioPTT Quality: 1:All available(Default Middle), 3:All available(Default High), 4:All available(Default Low), 5:High only, 6:Middle only, 7:Low only
35: VideoPTT Quality: 1:All available(Default Low), 3:All available(Default High), 4:All available(Default Middle), 5:High only, 6:Middle only, 7:Low only
40: VideoShare Quality: 1:All available(Default Middle), 2:All available(Default Highest), 3:All available(Default High), 4:All available(Default Low), 5:High only, 6:High only, 7:Middle only, 8:Low only
45: Record received PTT: 1:All available(Default ON),3:All available(Default OFF), 4:ON only, 5:Off only
46: Record sent PTT: 1:All available(Default OFF),3:All available(Default ON), 4:ON only, 5:Off only
47: Cycle PTT deletion: 1:Capacity, 2:1Hour, 3:2Hour, 4:6Hour, 5:12Hour, 6:1일, 7:1Hour only, 8:6Hour only, 9:1Day only
50: Use location: 1:All available(Default ON),3:All available(Default OFF), 4:Enable only, 5:Disable only
51: Location sensitivity: 1:All available(Default Middle), 3:All available(Default High), 4:All available(Default Low), 5:High only, 6:Middle only, 7:Low only
52: Location interval: 1:All available(System Default), 3:All available(30second), 4:All available(15second), 5:Default only, 6:30second only, 7:15second only
55: Emergency detection: 1:All available(Default OFF),3:All available(Default ON)
56: Use man-down: 1:All available(Default OFF),3:All available(Default ON)
63: Last index, reserved
* if ProvisionToken's length is not 64, default must be "1111111111111111111111111111110011111111111111111111111111111100"
onConnected
void onConnected() |
Description | Connected to server. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onSetup
void onSetup() |
Description | setup to server. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onDisconnected
void onDisconnected(int Reason) |
Reason | Whether the session log out.
0: Network Error
1: Log-out
2: Duplicate Log-in
3: Upgrade
4: Invalid License
5: Invalid Account
6 :Disconnected By User |
Description | Disconnected to server. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onProfileUpdated
void onProfileUpdated(string ProfileAttributesJson) |
ProfileAttributesJson | Updated attributes |
Description | Profile is updated. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onProfile
void onProfile(string ProfileAttributeJson) |
ProfileAttributeJson | Profile attributes |
Description | Response of GetProfile. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onProfileSearched
void onProfileSearched(string ProfilesJson) |
ProfilesJson | Profile list |
Description | Response of SearchProfile. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< ProfilesJson >
field | type | Description | Default | R |
Profile | string | | | O |
ProfileAttributes | string | ProfileAttributesJson | | M |
onProvisionUpdated
void onProvisionUpdated(string ProvisionAttributeJson) |
ProvisionAttributeJson | Updated attributes |
Description | Provision is updated. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onPresenceUpdated
void onPresenceUpdated(string PresenceAttributesJson) |
PresenceAttributesJson | Attributes |
Description | Presence is updated |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onPhotoUpdated
void onPhotoUpdated(int PhotoChangeNumber) |
PhotoChangeNumber | Photo's change number |
Description | Photo is updated |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onBuddyPhotoReceived
void onBuddyPhotoReceived(string UserID, int PhotoType, int PhotoDataLength, byte[] PhotoDataBuffer)
void onBuddyPhotoReceived(string UserID, string PhotoURL) |
UserID | User ID of photo |
PhotoType | Photo Type (20: BMP, 31: JPEG, 32 PNG) |
PhotoDataLength | Data size |
PhotoDataBuffer | Buffer of data |
PhotoURL | URL to receive photo |
Description | Response of GetBuddyPhoto |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onChannelCreated
void onChannelCreated(int ChannelID) |
ChannelID | Created Channel's ID |
Description | PTTChannel is created. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onChannelUpdated
void onChannelUpdated(string ChannelAttributesJson) |
ChannelAttributesJson | Attributes |
Description | PTTChannel is updated by owner. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onChannelDeleted
void onChannelDeleted(int ChannelID) |
ChannelID | Deleted Channel's ID |
Description | PTTChannel is deleted. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onChannelOpened
void onChannelOpened(PTTChannel PTTChannelInstance) |
PTTChannelInstance | Opened Channel's Instance |
Description | PTTChannel Instance is opened. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onChannels
void onChannels(string ChannelsJson) |
ChannelsJson | |
Description | Response of GetChannels |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< ChannelsJson >
field | type | Description | Default | R |
Channel | string | | | O |
ChannelAttributes | string | ChannelAttributesJson | | M |
onChannel
void onChannel(string ChannelAttributesJson) |
ChannelAttributesJson | |
Description | Response of GetChannelInfo |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onChannelSearched
void onChannelSearched(string ChannelsJson) |
ChannelsJson | Channel list |
Description | Response of SearchChannel. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onMembers
void onMembers(string MembersJson) |
MembersJson | result(Json) |
Description | Response of GetMembers |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< MembersJson >
field | type | Description | Default | R |
Member | | | | O |
UserID | string | Member’s ID | | M |
Name | string | URLEncode(Member’s name) | | M |
JoinedChannel | | | | O |
ChannelID | string | Joined Channel ID | | M |
ChannelRole | string | Member Role, 10:Normal(default), 20:Receiver, 90:Operator, SDK 2.1.2 | | O |
WaitedChannel | | | | O |
ChannelID | string | Waited ChannelLID | | M |
InvitorID | string | | | M |
InvitorName | string | | | M |
onGroupOpened
void onGroupCreated(Group GroupInstance) |
GroupInstance | Opened Group's Instance |
Description | Group Instance is opened. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onGroups
void onGroups(string GroupsJson) |
GroupsJson | |
Description | Response of GetGroups |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< GroupsJson >
field | type | Description | Default | R |
Group | | | | O |
ID | int | Group’s ID | | M |
Name | string | URLEncode(Group's Name) | | M |
Type | int | 0:Normal | | M |
onBuddies
void onResponseBuddies(string BuddiesJson) |
BuddiesJson | result(Json) |
Description | Response of GetBuddies |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< BuddiesJson >
field | type | Description | Default | R |
Buddy | | | | O |
UserID | string | Buddy ID | | M |
UserName | string | Buddy Name | | M |
GroupID | int | Group ID | | M |
Status | int | 10: registed, 20: requesting: 30: accepted | | |
onOrganizations
void onOrganizations(string OrganizationsJson) |
OrganizationsJson | |
Description | Response of GetOrganizations |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< OrganizationJson >
field | type | Description | Default | R |
Organization | | | | O |
ID | int | Organization’s ID | | M |
Name | string | URLEncode(Organization's Name) | | M |
Type | int | 0:Normal | | M |
onUsers
void onUsers(string UsersJson) |
UsersJson | result(Json) |
Description | Response of GetUsers |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< UsersJson >
field | type | Description | Default | R |
User | | | | O |
UserLID | string | User's ID | | M |
UserName | string | User's Name | | M |
IncludedGroups | | | | O |
OrganizationID | int | Organization’s ID | | M |
onBuddyRequested
void onBuddyRequested(int GroupID, string RequesterID, string RequesterName) |
GroupID | Group ID of event |
RequesterID | User ID who have added me |
RequesterName | User Name who have added me |
Description | Response of GetUsers |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onBuddyAccepted
void onBuddyAccepted(int GroupID, string UserID, string buddyInfoJson) |
GroupID | Group ID of event |
UserID | Subscriber's ID |
Description | Subscribed into a Buddy Group |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< BuddyInfoJson >
field | type | Description | Default | R |
Nickname | string | URLEncode(Buddy Nickname) (MAX 255char) | | |
StatusText | string | URLEncode(Buddy StatusText(MAX 255char). | | |
PhotoChangeNumber | int | Server’s change number. | | |
onBuddyDenied
void onBuddyDenied(int ChannelID, string UserID) |
GroupID | Group ID of event |
UserID | Subscriber's ID |
Description | User is joined into a Buddy Group |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onSubscribeRequested
void onSubscribeRequested(int ChannelID, string MemberID, string MemberName) |
ChannelID | Channel ID of event |
MemberID | Subscriber's ID |
MemberName | Subscriber's Name |
Description | Requested a subscription into a PTT channel. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onSubscribeAccepted
void onSubscribeAccepted(int ChannelID, string MemberID, string MemberName) |
ChannelID | Channel ID of event |
MemberID | Subscriber's ID |
MemberName | Subscriber's Name |
Description | Subscribed into a PTT channel |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onSubscribeDenied
void onSubscribeDenied(int ChannelID, string MemberID) |
ChannelID | Channel ID of event |
MemberID | Subscriber's ID |
Description | User is joined into a PTT channel. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onUnsubscribed
void onUnsubscribed(int ChannelID, string MemberID, string OwnerID) |
ChannelID | Channel ID of event |
MemberID | Unsubscriber's ID |
OwnerID | Channel owner's ID |
Description | User is joined into a PTT channel. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onSubscribeCanceled
void onSubscribeCanceled(int ChannelID, string MemberID) |
ChannelID | Channel ID of event |
MemberID | Requester's ID for cancel |
Description | Canceled to subscribe |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onInviteRequested
void onInviteRequested(int ChannelID, string channelName, string RequesterID, string RequesterName, string ReceiverID, string ReceiverName) |
ChannelID | Channel ID of event |
ChannelName | Channel Name |
RequesterID | Requester ID |
RequesterName | Requester Name |
ReceiverID | Receiver ID |
ReceiverName | Receiver Name |
Description | Invited from another peer |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onInviteAccepted
void onInvitedAccepted(int ChannelID, string SenderID, string ReceiverID, string ReceiverName) |
ChannelID | Channel ID of event |
SenderID | Sender ID |
ReceiverID | Receiver ID |
ReceiverName | Receiver Name |
Description | accepted to invite PTT channel |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onInviteDenied
void onInvitedDenied(int ChannelID, string RequesterID, string ReceiverID, string ReceiverName) |
ChannelID | Channel ID of event |
RequesterID | Requester ID |
ReceiverID | Receiver ID |
Description | denied to invite PTT channel |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onInviteCanceled
void onInvitedCanceled(int ChannelID, string ReceiverID) |
ChannelID | Channel ID of event |
ReceiverID | Receiver ID |
Description | Canceled to invite |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onNotices
void onNotices(string NoticesJson) |
ChannelsJson | |
Description | Response of GetNotices |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
< NoticesJson >
field | type | Description | Default | R |
Notice | | | | O |
Id | int | Notice ID | | M |
Title | string | Title of Notice | | M |
Content | string | Content of Notice | | M |
Type | int | 10: Normal | | M |
UpdateDate | string | Date to update Notice | | M |
onAwakeUser
void onAwakeUser(string UserID) |
UserID | User ID to receive notify |
Description | Response of AwakeUser |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onAwakeChannelUser
void onAwakeChannelUser(int ChannelID, string UserID) |
ChannelID | Channel ID of event |
UserID | User ID to receive notify |
Description | Response of AwakeChannelUser |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onBluetoothStatusChanged
void onBluetoothStatusChanged(int BluetoothStatus) |
BluetoothStatus | 0: Unavailable, 10:Available, 20:Headset Enabled, 23:Button Enabled, 29:Headset+Button Enabled |
Description | Bluetooth device's status is changed |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onVoxDataCaptured
void onVoxDataCaptured(byte[] TrackDataBuffer, int DataLength, unsigned int Timestamp) |
TrackDataBuffer | Buffer of data |
DataLength | Data size |
Timestamp | Timestamp of data |
Description | Vox data is captured from device. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | Not implemented |
Linux SDK | Not supported yet |
onPrivateMessageReceived
void onPrivateMessageReceived(string SenderID, string SenderName, string Message) |
SenderID | Sender ID |
SenderName | Sender Name |
Message | Message |
Description | A private message is received from sender. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onPrivateCustomMessageReceived
void onPrivateCustomMessageReceived(string SenderID, string SenderName, byte[] DataBuffer, int DataLength) |
SenderID | Sender ID |
SenderName | Sender Name |
DataBuffer | Buffer of data |
DataLength | Data size |
Description | Private custom message is received. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onSysCommandReceived
void onSysCommandReceived(int CMD, string Param1, string ParamsJson) |
CMD | CMD |
Param1 | Param1 |
ParamsJson | ParamsJson |
Description | System command message is received. |
Android SDK | Not implemented |
iOS SDK | Not implemented |
Windows SDK | Not implemented |
Linux SDK | Not supported yet |
onLatency
void onLatency(int MiliLatency) |
MiliLatency | delayTime(miliseconds). It is round-trip time, you need to devide by 2. |
Description | check result for Latency. |
Android SDK | 2.1.1 |
iOS SDK | 2.1.1 |
Windows SDK | 2.1.1 |
Linux SDK | Not supported yet |
onLogingMessage
void onLogingMessage(String Type, String Message) |
Type | "NET":Network, "PRT":Protocol |
Message | a message to be write |
Description | write log. |
Android SDK | 2.1.1 |
iOS SDK | Not supported |
Windows SDK | Not implemented |
Linux SDK | Not supported yet |
onPreviousChannel
void onPreviousChannel() |
Description | Fired a previous channel event. |
Android SDK | Not implemented |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported yet |
onNextChannel
void onNextChannel() |
Description | Fired a next channel event. |
Android SDK | Not implemented |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported yet |
onSOS
void onSOS() |
Description | Fired a SOS key event by Bluetooth. |
Android SDK | 2.1.2 |
iOS SDK | Not supported |
Windows SDK | Not supported |
Linux SDK | Not supported yet |