ViewContextTracker Service
File: src/services/ViewContextTracker.ts
Overview
Exports
- ViewContext - interface export
- NotificationUIDecision - interface export
- ViewContextTracker - class export
- viewContextTracker - const export
Classes
ViewContextTracker
No description available.
Methods:
updateContextgetCurrentContextisViewingChannelisViewingConversationshouldShowNotificationUIreset
Properties:
currentContextview_typecontextnavigatesupdatedchannelchannelIdconversationconversationIdNoteserver_idchannel_idconversation_idtypesuppressshowToastshowDesktopplaySoundreasonnotifications
Interfaces
ViewContext
No description available.
typescript
interface ViewContext {
server_id?: string
channel_id?: string
conversation_id?: string
view_type: 'server_channel' | 'dm' | 'settings' | 'home'
}NotificationUIDecision
No description available.
typescript
interface NotificationUIDecision {
showToast: boolean
showDesktop: boolean
playSound: boolean
reason: string
}Source Code Insights
File Size: 3392 characters Lines of Code: 121 Imports: 1
Usage Example
typescript
import { ViewContext, NotificationUIDecision, ViewContextTracker, viewContextTracker } from '@/services/ViewContextTracker'
// Example usage
// Use the exported functionalityThis documentation was automatically generated from the source code.
