Using StreamLayer UI Context
Access StreamLayer UI state flags via the useStreamLayerUI React hook to control component visibility in your application.
Overview
The useStreamLayerUI hook provides access to boolean flags for StreamLayer UI components. Use these flags to control the visibility of UI elements in your application.
Available Flags
promotionExternalAd?: boolean
promotionSidebar?: boolean
promotionOverlay?: boolean
promotionNotification?: boolean
promotionBanner?: boolean
app?: boolean
appNotification?: boolean
onboardingNotification?: booleanUsage
import { useStreamLayerUI } from '@streamlayer/react'Related
- Using StreamLayer Context — Access SDK core context
- Advertising — Advertisement component integration
- Integration Guide — Full Web SDK setup
Updated 21 days ago
