@@ -149,8 +149,10 @@ Used to retrieve all methods bundled with Intercom. These are based on the offic
149149| showArticle | (articleId: string) => void | opens the Messenger with the specified article by ` articleId `
150150| startSurvey | (surveyId: number) => void | Trigger a survey in the Messenger by ` surveyId `
151151| showSpace | (spaceName: IntercomSpace) => void | Opens the Messenger with the specified space
152+ | showNews | (newsId: number) => void | Opens the Messenger with the specified news item by ` newsId `
152153| showTicket | (ticketId: number) => void | Opens the Messenger with the specified ticket by ` ticketId `
153154| showConversation | (conversationId: number) => void | Opens the Messenger with the specified conversation by ` conversationId `
155+ | hideNotifications | (hidden: boolean) => void | controls the visibility of in-app notifications, pass ` true ` to hide or ` false ` to show them
154156
155157#### Example
156158``` ts
@@ -183,8 +185,10 @@ const HomePage = () => {
183185 showArticle,
184186 startSurvey,
185187 showSpace,
188+ showNews,
186189 showTicket,
187- showConversation
190+ showConversation,
191+ hideNotifications,
188192 } = useIntercom ();
189193
190194 const bootWithProps = () => boot ({ name: ' Russo' });
@@ -202,8 +206,10 @@ const HomePage = () => {
202206 const handleShowArticle = () => showArticle (123456 );
203207 const handleStartSurvey = () => startSurvey (123456 );
204208 const handleShowSpace = () => showSpace (' tasks' );
209+ const handleShowNews = () => showNews (123 );
205210 const handleShowTicket = () => showTicket (123 );
206211 const handleShowConversation = () => showConversation (123 );
212+ const handleHideNotifications = () => hideNotifications (true );
207213
208214 return (
209215 <>
@@ -230,8 +236,10 @@ const HomePage = () => {
230236 < button onClick = {handleShowArticle }> Open article in Messenger < / button >
231237 < button onClick = {handleStartSurvey }> Start survey in Messenger < / button >
232238 < button onClick = {handleShowSpace }> Open space in Messenger < / button >
239+ < button onClick = {handleShowNews }> Open news in Messenger < / button >
233240 < button onClick = {handleShowTicket }> Open ticket in Messenger < / button >
234241 < button onClick = {handleShowConversation }> Open conversation in Messenger < / button >
242+ < button onClick = {handleHideNotifications }> Hide notifications < / button >
235243 < / >
236244 );
237245};
0 commit comments