ViewKt

public final class ViewKt

Functions

Link copied to clipboard
public final static Unit applyWindowInsetsWithTopPadding(View $self, View paddingTargetView, Boolean displayCutout, Boolean navigationBars, Boolean statusBars)

applyWindowInsetsWithTopPadding From Android 15 onwards we have to support the edge to edge enforcement. In health example app and SDK we are going to use this method, so we can protect the view from display cut outs nav bars and status bars.

Link copied to clipboard
public final static Unit onKeyboardAction(View $self, Function0<Unit> onKeyboardActivate)

Executes onKeyboardActivate when the view is activated using a physical keyboard (e.g. Enter or D-Pad center).

Link copied to clipboard
public final static Unit setIntervalClickListener(View $self, View.OnClickListener click)