Construct engine instance (prefer NCCallEngine.init).
Runtime context
Call initialization options
StaticinitSingleton initialization
logOutputLevel: console log level, default EnableLogL.WARN; logs at or below this level are printed
isPubLowResolutionStream: whether to publish low-resolution stream, default false; when true, remote can subscribe to low-res to save bandwidthExisting or newly created NCCallEngine instance
Set application call event listener (incoming call, call end, participant state, media type changes, etc.).
INCCallEventsListener; see apiDoc for fields
Set call quality listener; send/receive quality callbacks are driven by underlying status reports, about once per second.
IConnectionQualityListener; all methods optional
Call connection quality listener
Per-user volume: userId → level (0–100), about once per second.
User ID to volume map
Local uplink quality; userId is the logged-in user. About once per second.
User ID → INCCallQualityStats
Per-remote downlink quality. About once per second.
Remote user ID → INCCallQualityStats
Remove bound video views. You may remove the DOM nodes; calling this stops receiving that user's video from the SDK.
User IDs
code Whether removal succeeded
Play a user's audio/video.
For video, call setVideoView for that user first.
User whose media to play
See NCCallMediaType
Whether playback started successfully
Create video config builder
NCVideoConfigBuilder for capture settings (camera id, frame rate, resolution, etc.); call build() then setVideoConfig
Set video config (resolution, min/max bitrate, frame rate, camera ID, etc.). Apply before the call connects.
Video configuration
Create audio config builder
NCAudioConfigBuilder for capture settings (e.g. microphone id); call build() then setAudioConfig
Create Android push config builder
NCAndroidPushConfigBuilder; call build() for androidPushConfig, then pass it in pushConfig.androidConfig of startCall / inviteToCall / endCall
Set audio config (bitrate, sample rate, capture device ID). Apply before the call connects.
Audio configuration
Start an outgoing call
Callee user id(s); single string or string[] (one entry for 1:1)
OptionalpushConfig: INCCallPushConfigMobile push payload
Optionalextra: stringOpaque string forwarded to callee(s)
OptionaltargetId: stringGroup id for multi-party calls
callId Session id on success
Invite users during a 1:1 or group call
Invitee user IDs
OptionalpushConfig: INCCallPushConfigMobile push payload
Optionalextra: stringOpaque string forwarded to invitees
busyUsers Users busy; userState is NCCallUserState
Accept a call
Call ID
OptionalpushConfig: INCCallPushConfigMobile push payload
Hang up
OptionalcallId: stringOptional. Omit to hang up the active main session; pass id to hang up that call or a pending incoming call (ringing, not answered) without affecting other calls
OptionalpushConfig: INCCallPushConfigMobile push payload
Request media type change during a call (1:1 only; no manual camera toggle required)
Target type: only NCCallMediaType audio or video (toggle between audio-only and A/V)
transactionId Use when cancelling or responding to the change request
Cancel a pending media type change (1:1 only)
Same as returned from requestChangeMediaType
Respond to a media type change request (1:1 only)
From onMediaTypeChangeRequestReceived
Whether to accept the change
Fetch ongoing (not ended) call logs for the current user from server
records List of INCCallLog
Paginated call history for the current user
Anchor timestamp; use -1 for first page (newest when order is reverse, oldest when forward). Forward: records after this time; reverse: records before this time
Page size
Optionalorder: 0 | 10 ascending (after startTime), 1 descending (before startTime); default forward
result.hasMore More pages available
Delete call logs by id for the current user
Call IDs to delete
Delete all call logs for the current user
List audio input (microphone) devices
List audio output (speaker) devices
Set audio output (playback) device
Device id
SDK version string
List video input (camera) devices
Whether the microphone is currently enabled
Overseas (Nexconn) CallPlus public exports. Primary naming: NC*, INC*, etc.