Platform-Adaptive Widgets
Not every platform supports every feature. UseSBCanvas.platform to detect what’s available and adapt your widget accordingly.
Checking the Platform
Feature Detection
Features by Platform
| Feature | Kick | Rumble | Blaze |
|---|---|---|---|
emotes | Yes | Yes | Yes |
badges | Yes | Yes | Yes |
subscriptions | Yes | Yes | Yes |
followers | Yes | Yes | Yes |
raids | Yes | Yes | No |
hosts | Yes | No | No |
tips | Yes | No | Yes |
rants | No | Yes | No |
clips | Yes | Yes | No |
Example: Universal Donation Alert
Tips on Kick/Blaze and rants on Rumble are conceptually the same (paid messages). Handle both:Example: Platform-Specific Branding
Example: Graceful Degradation
API Reference
| Property/Method | Returns | Description |
|---|---|---|
platform.provider | 'kick' | 'rumble' | 'blaze' | null | Current platform |
platform.channelId | string | Channel ID |
platform.channelName | string | Display name |
platform.channelSlug | string | undefined | URL slug |
platform.features | string[] | Supported feature list |
platform.hasFeature(name) | boolean | Check if feature is supported |