Skip to content

Commit

Permalink
Update listener.layer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Jun 11, 2024
1 parent 1743ac8 commit d701108
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/api/layers/listener.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
ParticipantEvent,
PresenceEvent,
Wid,
IncomingCall,
} from '../model';
import { MessageType, SocketState, SocketStream } from '../model/enum';
import { InterfaceMode } from '../model/enum/interface-mode';
Expand Down Expand Up @@ -501,18 +502,16 @@ export class ListenerLayer extends ProfileLayer {
}

/**
* @event Escuta por ligações recebidas, seja de áudio ou vídeo.
*
* Para recusar a ligação, basta chamar o `rejectCall` {@link rejectCall}
*
* @returns Objeto descartável para parar de ouvir
* @event Listen for incoming calls, whether audio or video (pending a reaction).
* To reject the call, simply call `rejectCall` {@link rejectCall}
* @returns Disposable object to stop listening
*/
public onIncomingCall(callback: (call: any) => any) {
public onIncomingCall(callback: (call: IncomingCall) => any) {
return this.registerEvent('onIncomingCall', callback);
}

/**
* Listens to presence changed, by default, it will triggered for active chats only or contacts subscribed (see {@link subscribePresence})
* Listens to presence changed, by default, it will be triggered for active chats only or contacts subscribed (see {@link subscribePresence})
* @event Listens to presence changed
* @param callback Callback of on presence changed
* @returns Disposable object to stop the listening
Expand Down

0 comments on commit d701108

Please sign in to comment.