Files
madar/FEATURES.md
T
2026-09-05 15:54:33 +03:30

40 lines
4.3 KiB
Markdown

# Documentation coverage
| Documented capability | Demo |
| --- | --- |
| `initData`, `initDataUnsafe`, HMAC validation, user fields, `auth_date` | Verified identity card; unsafe data never used for authentication |
| `query_id`, `chat_type`, `chat_instance`, `start_param`, `device_id` | Verified launch context displayed after server authentication |
| Optional `POST /api/app/verify` | Authenticity card and optional mandatory check on login |
| `POST /api/app/sendMessage` | Message composer, current authenticated user only |
| `version`, `platform`, `isVersionAtLeast()` | Header/version metric, inspector and version checker |
| All documented `ThemeParams` | Inspector and labeled color swatches; theme synchronization |
| `setHeaderColor`, `setBackgroundColor`, `setBottomBarColor` | Appearance card with color picker and target selector |
| `MainButton`, `SecondaryButton` properties | Live inspector |
| BottomButton `setText`, `setParams`, `show`, `hide`, `enable`, `disable` | Main/secondary button cards, text/color/position/shine inputs |
| BottomButton `showProgress`, `hideProgress`, `onClick`, `offClick` | Main/secondary button cards; stable callback references |
| `BackButton`, `SettingsButton`: `show`, `hide`, `onClick`, `offClick`, `isVisible` | Native navigation cards and inspector |
| `showAlert`, `showConfirm`, `showPopup`, `PopupParams`, `PopupButton` | Dialog card; callbacks and browser preview explicitly labeled |
| `HapticFeedback.impactOccurred` (all five styles), `notificationOccurred` (all three types), `selectionChanged` | Haptic card; selection feedback triggered only when selection changes |
| `showScanQrPopup`, `closeScanQrPopup`, `ScanQrPopupParams` | QR card; result treated as untrusted text, never opened automatically |
| `requestWriteAccess`, `requestContact` | Permissions card; signed contact validated server-side |
| `ready`, `close`, `enableClosingConfirmation`, `disableClosingConfirmation` | Lifecycle card; also calls ready at startup |
| `enableVerticalSwipes`, `disableVerticalSwipes` | Lifecycle card, Android guard |
| `expand`, `requestFullScreen`, `exitFullScreen`, `lockOrientation`, `unlockOrientation` | Viewport card; compatible with current SDK capitalization |
| `isExpanded`, `isActive`, `isFullscreen`, `isOrientationLocked`, `isClosingConfirmationEnabled`, `isVerticalSwipesEnabled` | Live state inspector |
| `viewportHeight`, `viewportStableHeight`, `safeAreaInset`, `contentSafeAreaInset`, header/background/bottom colors | Live state inspector; layout respects safe area CSS variables |
| `addToHomeScreen`, `checkHomeScreenStatus` | Home screen card |
| `openLink`, `OpenLinkOptions.try_instant_view`, `try_browser`, `openEitaaLink` | Link card with URL and option controls |
| `downloadFile`, `DownloadFileParams` | Download card with HTTPS URL, filename and bundled SVG postcard |
| `Accelerometer.start/stop`, x/y/z, `isStarted`, `refresh_rate` | Accelerometer card with live values and motion visualization |
| `Gyroscope.start/stop`, x/y/z, `isStarted`, `refresh_rate` | Gyroscope card with live values and motion visualization |
| `DeviceOrientation.start/stop`, alpha/beta/gamma, `absolute`, `isStarted`, `refresh_rate`, `need_absolute` | Orientation card; absolute mode option and live readout |
| `onEvent`, `offEvent` | Event tools and event console; stable handlers, explicit subscribe/unsubscribe |
| `themeChanged`, `viewportChanged`, `activated`, `deactivated`, `safeAreaChanged`, `contentSafeAreaChanged` | Event console + refreshed inspector/theme |
| `mainButtonClicked`, `backButtonClicked`, `settingsButtonClicked` | Event console + native control callbacks; secondary button click also observed |
| `popupClosed`, `qrTextReceived`, `scanQrPopupClosed`, `writeAccessRequested`, `contactRequested` | Event console; sensitive payloads redacted |
| `fullscreenChanged`, `fullscreenFailed`, `homeScreenAdded`, `homeScreenChecked` | Event console |
Sensors stop when the page is hidden or unloaded. Android-only methods and SDK 1.3/1.4 additions are guarded. SDK dispatch is reported as a request, not a fabricated successful native operation; callbacks and events report outcomes.
The overview features six cards; all 22 cards are accessible through the sidebar or search. Categories preserve control state when hidden. Browser preview never fabricates authentication, message delivery, sensor measurements, QR scans or native permission approval.