HMSNotifications

Methods

onNotification

onNotification<T>(cb, types?): () => void

you can subscribe to notifications for new message, peer add etc. using this function. note that this is not meant to maintain any state on your side, as the reactive store already does that. The intent of this function is mainly to display toast notifications or send analytics. We'll provide a display message which can be displayed as it is for common cases.

Type parameters

NameType
Textends HMSNotificationTypeParam

Parameters

NameType
cbHMSNotificationCallback<T>
types?T

Returns

fn

▸ (): void

you can subscribe to notifications for new message, peer add etc. using this function. note that this is not meant to maintain any state on your side, as the reactive store already does that. The intent of this function is mainly to display toast notifications or send analytics. We'll provide a display message which can be displayed as it is for common cases.

Returns

void


Have a suggestion? Recommend changes ->

Was this helpful?

1234