{"openapi":"3.0.0","info":{"title":"Android System Bars API","description":"API providing information and guidance on Android system bars including status bar, caption bar, and navigation bar. Covers edge-to-edge support, system bar styles, navigation modes, layouts, display cutouts, and immersive mode.\n","version":"1.0.1"},"paths":{"/system-bars/edge-to-edge":{"post":{"operationId":"addEdgeToEdgeSupport","summary":"Add adaptive edge-to-edge support to Jetpack Compose apps","description":"Use the Edge-to-Edge Android skill to add adaptive edge-to-edge support. Install via Android CLI with `android skills add --skill edge-to-edge`.\n","responses":{"200":{"description":"Edge-to-edge support added successfully"}}}},"/system-bars/status-bar":{"get":{"operationId":"getStatusBarInfo","summary":"Retrieve information about the status bar","description":"The status bar contains notification and system icons. It can be transparent or translucent. Users interact by pulling it down to access the notification shade.\n","responses":{"200":{"description":"Status bar information retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusBar"}}}}}},"put":{"operationId":"setStatusBarStyle","summary":"Set the style of the status bar","description":"Make the status bar transparent or translucent and set icon styles for proper contrast. Edge-to-edge is enforced on Android 15 by default.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"style":{"type":"string","enum":["transparent","translucent"]},"iconTheme":{"type":"string","enum":["light","dark"]}}}}}},"responses":{"204":{"description":"Status bar style updated successfully"}}}},"/system-bars/navigation":{"get":{"operationId":"getNavigationInfo","summary":"Retrieve information about navigation modes","description":"Android navigation includes back, home, and overview controls. Supports gesture navigation and adaptive navigation.\n","responses":{"200":{"description":"Navigation information retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Navigation"}}}}}},"put":{"operationId":"setNavigationStyle","summary":"Set the navigation bar style","description":"Configure navigation bar appearance for gesture or button modes. Gesture navigation bars should be transparent with dynamic color adaptation. Button navigation bars can be translucent or transparent with scrim settings.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["gesture","button"]},"style":{"type":"string","enum":["transparent","translucent"]},"contrastEnforced":{"type":"boolean"}}}}}},"responses":{"204":{"description":"Navigation style updated successfully"}}}},"/system-bars/keyboard":{"get":{"operationId":"getKeyboardNavigationInteraction","summary":"Get information on keyboard and navigation bar interaction","description":"Navigation types react appropriately to the on-screen keyboard. Use WindowInsetsAnimationCompat for smooth transitions.\n","responses":{"200":{"description":"Keyboard and navigation interaction info retrieved","content":{"application/json":{"schema":{"type":"object","properties":{"supportsSmoothTransition":{"type":"boolean"}}}}}}}}},"/system-bars/layouts":{"get":{"operationId":"getAdaptiveLayoutsInfo","summary":"Retrieve information on adaptive layouts and system bars","description":"Adaptive layouts optimize display space and consider system bars to avoid obscuring content. Use WindowInsets to handle system bar intrusions.\n","responses":{"200":{"description":"Adaptive layouts information retrieved","content":{"application/json":{"schema":{"type":"object","properties":{"usesCanonicalLayouts":{"type":"boolean"}}}}}}}}},"/system-bars/display-cutouts":{"get":{"operationId":"getDisplayCutoutsInfo","summary":"Retrieve information about display cutouts","description":"Display cutouts provide space for front-facing sensors and vary by manufacturer. Consider their interaction with content and orientation.\n","responses":{"200":{"description":"Display cutouts information retrieved","content":{"application/json":{"schema":{"type":"object","properties":{"cutoutTypes":{"type":"array","items":{"type":"string"}}}}}}}}}},"/system-bars/immersive-mode":{"get":{"operationId":"getImmersiveModeInfo","summary":"Retrieve information about immersive mode","description":"Immersive mode hides system bars for full-screen experiences while allowing user interaction to reveal them.\n","responses":{"200":{"description":"Immersive mode information retrieved","content":{"application/json":{"schema":{"type":"object","properties":{"supportsTapToReveal":{"type":"boolean"}}}}}}}}}},"components":{"schemas":{"StatusBar":{"type":"object","description":"Information about the Android status bar","properties":{"style":{"type":"string","enum":["transparent","translucent"]},"icons":{"type":"array","items":{"type":"string"},"description":"Types of icons shown in the status bar"},"userInteraction":{"type":"string","description":"How users interact with the status bar"}}},"Navigation":{"type":"object","description":"Information about Android navigation modes","properties":{"modes":{"type":"array","items":{"type":"string","enum":["gesture","button"]}},"gestureNavigation":{"type":"object","properties":{"supportsEdgeToEdge":{"type":"boolean"},"gestureHandleVisible":{"type":"boolean"}}},"adaptiveNavigation":{"type":"object","properties":{"switchesWithWindowSize":{"type":"boolean"},"supportsNavigationRail":{"type":"boolean"}}}}}}}}