Class RenderingExtensionsKt
-
- All Implemented Interfaces:
public final class RenderingExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static WindowInsetsHandler.FinalInsets.InsetscomputeInsetsForDefaultExperience(WindowInsets $self)final static WindowInsetsHandler.FinalInsets.InsetscomputeInsetsForEdgeToEdgeExperience(WindowInsets $self)Computes the safe insets for edge-to-edge browser experience. final static WindowInsetsHandler.FinalInsets.InsetsgetNavigationBarInsets(WindowInsets $self)Returns navigation bar insets on API 30+. final static WindowInsetsHandler.FinalInsets.InsetsgetAdsGestureInsets(WindowInsets $self)Returns gesture insets used to avoid interactive system gesture regions. final static WindowInsetsHandler.FinalInsets.InsetsgetAdDisplayCutOutInsets(WindowInsets $self)Returns display cutout (notch/hole-punch) safe insets. final static WindowInsetsHandler.FinalInsets.InsetsgetAdRoundedInsets(WindowInsets $self)final static WindowInsetsHandler.FinalInsets.InsetsmaxOfInsets(WindowInsetsHandler.FinalInsets.Insets area, WindowInsetsHandler.FinalInsets.Insets display, WindowInsetsHandler.FinalInsets.Insets roundedCorner, WindowInsetsHandler.FinalInsets.Insets navigationBar)Merges multiple inset sources by taking the maximum value on each side. final static JSONObjectonError(String targetViewId, Integer errorCode)Builds a standardized error payload used by render-view JS callbacks. final static RenderViewmainAdRenderView(RenderView $self)Returns the default ad render view for operations that should target the main HTML webview, even when currently invoked from a secondary route. final static UnithideSystemBars(Window $self)Hides system bars for fullscreen/immersive browser UI. final static UnitshowSystemBars(Window $self)Restores system bars after fullscreen/immersive browser UI. final static UnitdrawIntoCutOuts(Window $self)Enables drawing into display cutout areas based on API level. final static UnitdrawIntoCutOuts(Window $self, Integer layoutInDisplayCutoutModeAlways)Applies cutout mode and configures decor fitting behavior. final static UnitrevertDrawIntoCutOuts(Window $self)Reverts display cutout drawing behavior to default. final static UnitrevertDrawIntoCutOuts(Window $self, Integer layoutInDisplayCutoutModeAlways)Reverts cutout mode and restores decor fitting behavior. final static UnitimplAPIAbove30HideSystemBars(Window $self)API 30+ implementation to hide system bars using WindowInsetsController. final static UnitrevertAPIAbove30HideSystemBars(Window $self)API 30+ implementation to restore system bars. final static UnitimplAPI19To30HideSystemBars(Window $self)API 19-29 implementation to hide navigation/status bars using system UI flags. final static UnitrevertAPI19To30HideSystemBars(Window $self)API 19-29 implementation to restore default system UI visibility. -
-
Method Detail
-
computeInsetsForDefaultExperience
final static WindowInsetsHandler.FinalInsets.Insets computeInsetsForDefaultExperience(WindowInsets $self)
-
computeInsetsForEdgeToEdgeExperience
@RequiresApi(value = 30) final static WindowInsetsHandler.FinalInsets.Insets computeInsetsForEdgeToEdgeExperience(WindowInsets $self)
Computes the safe insets for edge-to-edge browser experience.
Includes gesture, cutout, rounded-corner and navigation-bar insets and returns the max value for each side.
-
getNavigationBarInsets
@RequiresApi(value = 30) final static WindowInsetsHandler.FinalInsets.Insets getNavigationBarInsets(WindowInsets $self)
Returns navigation bar insets on API 30+.
-
getAdsGestureInsets
final static WindowInsetsHandler.FinalInsets.Insets getAdsGestureInsets(WindowInsets $self)
Returns gesture insets used to avoid interactive system gesture regions.
Handles API-specific implementations and falls back to zero insets on unsupported versions.
-
getAdDisplayCutOutInsets
final static WindowInsetsHandler.FinalInsets.Insets getAdDisplayCutOutInsets(WindowInsets $self)
Returns display cutout (notch/hole-punch) safe insets.
Handles API-specific implementations and falls back to zero insets on unsupported versions.
-
getAdRoundedInsets
final static WindowInsetsHandler.FinalInsets.Insets getAdRoundedInsets(WindowInsets $self)
-
maxOfInsets
final static WindowInsetsHandler.FinalInsets.Insets maxOfInsets(WindowInsetsHandler.FinalInsets.Insets area, WindowInsetsHandler.FinalInsets.Insets display, WindowInsetsHandler.FinalInsets.Insets roundedCorner, WindowInsetsHandler.FinalInsets.Insets navigationBar)
Merges multiple inset sources by taking the maximum value on each side.
-
onError
final static JSONObject onError(String targetViewId, Integer errorCode)
Builds a standardized error payload used by render-view JS callbacks.
-
mainAdRenderView
final static RenderView mainAdRenderView(RenderView $self)
Returns the default ad render view for operations that should target the main HTML webview, even when currently invoked from a secondary route.
-
hideSystemBars
final static Unit hideSystemBars(Window $self)
Hides system bars for fullscreen/immersive browser UI.
-
showSystemBars
final static Unit showSystemBars(Window $self)
Restores system bars after fullscreen/immersive browser UI.
-
drawIntoCutOuts
final static Unit drawIntoCutOuts(Window $self)
Enables drawing into display cutout areas based on API level.
-
drawIntoCutOuts
@RequiresApi(value = 28) final static Unit drawIntoCutOuts(Window $self, Integer layoutInDisplayCutoutModeAlways)
Applies cutout mode and configures decor fitting behavior.
-
revertDrawIntoCutOuts
final static Unit revertDrawIntoCutOuts(Window $self)
Reverts display cutout drawing behavior to default.
-
revertDrawIntoCutOuts
@RequiresApi(value = 28) final static Unit revertDrawIntoCutOuts(Window $self, Integer layoutInDisplayCutoutModeAlways)
Reverts cutout mode and restores decor fitting behavior.
-
implAPIAbove30HideSystemBars
@RequiresApi(value = 30) final static Unit implAPIAbove30HideSystemBars(Window $self)
API 30+ implementation to hide system bars using WindowInsetsController.
-
revertAPIAbove30HideSystemBars
@RequiresApi(value = 30) final static Unit revertAPIAbove30HideSystemBars(Window $self)
API 30+ implementation to restore system bars.
-
implAPI19To30HideSystemBars
final static Unit implAPI19To30HideSystemBars(Window $self)
API 19-29 implementation to hide navigation/status bars using system UI flags.
-
revertAPI19To30HideSystemBars
final static Unit revertAPI19To30HideSystemBars(Window $self)
API 19-29 implementation to restore default system UI visibility.
-
-
-
-