ModuleClientApi - User
Class representing the ModuleClientAPI User.
Functions
getName
Get the name of the user.
api.getUser().getName(callback);
| Argument | Type | Description |
|---|---|---|
| (Optional) callback | ( name:string ):void | Show a popup when a user has not entered their name and receive the name via the callback. |
Returns string Name of the user (only if callback is undefined)
getOrganization
Get the organization of the user.
api.getUser().getName(callback);
| Argument | Type | Description |
|---|---|---|
| (Optional) callback | ( name:string ):void | Show a popup when a user has not entered their organization and receive the organization via the callback. |
Returns string Organization of the user (only if callback is undefined)
hasName
Check is the user has a name.
api.getUser().hasName();
Return boolean User has name
hasOrganization
Check is the user has a organization.
api.getUser().hasOrganization();
Return boolean User has organization
changeDetails
Show the change name dialog to the user.
api.getUser().changeDetails(callback);
| Argument | Type | Description |
|---|---|---|
| callback | function | Function that will be called when the user finishes changing their details. |
getCameraID
Get current select camera deviceID.
api.getUser().getCameraID();
Returns string Select camera device ID or null
getMicrophoneID
Get current select microphone deviceID.
api.getUser().getMicrophoneID();
Returns string Select microphone device ID or null
hasCameraID
Check if the user has a camera selected.
api.getUser().hasCameraID();
Returns boolean Camera is selected
hasMicrophoneID
Check if the user has a microphone selected.
api.getUser().hasMicrophoneID();
Returns boolean Microphone is selected
isMobile
Check if the user is watching from a mobile phone.
api.getUser().isMobile();
Returns boolean User is on mobile
isMobileOrTablet
Check if the user is watching from a mobile phone or from a tablet.
api.getUser().isMobileOrTablet();
Returns boolean User is on mobile or table
Getting Started
Module Development
- Introduction
- V2 Module Structure
- V1 Module Structure
- Development environment/Building
- Module Config
- Module Debugging
- GetiyoModuleTool
- Bug/Feature Reporting
- Contact Details
ModuleServerAPI
ModuleServerAPI GameLib
ModuleClientAPI
ModuleApi Shared
© Vix Entertainment 2023 - © Mooren Productief 2023 - All rights reserved