Added in API level 29

Builder

class Builder
kotlin.Any
   ↳ android.service.autofill.VisibilitySetterAction.Builder

Builder for VisibilitySetterAction objects.

Summary

Public constructors
Builder(id: Int, visibility: Int)

Creates a new builder for an action that change the visibility of one child view.

Public methods
VisibilitySetterAction

Creates a new VisibilitySetterAction instance.

VisibilitySetterAction.Builder
setVisibility(id: Int, visibility: Int)

Sets the action to changes the visibility of a child view.

Public constructors

Builder

Added in API level 29
Builder(
    id: Int,
    visibility: Int)

Creates a new builder for an action that change the visibility of one child view.

Parameters
id Int: view resource id of the children view.
visibility Int: one of View#VISIBLE, View#INVISIBLE, or View#GONE. Value is android.view.View#VISIBLE, android.view.View#INVISIBLE, or android.view.View#GONE
Exceptions
java.lang.IllegalArgumentException if visibility is not one of View#VISIBLE, View#INVISIBLE, or View#GONE.

Public methods

build

Added in API level 29
fun build(): VisibilitySetterAction

Creates a new VisibilitySetterAction instance.

Return
VisibilitySetterAction This value cannot be null.

setVisibility

Added in API level 29
fun setVisibility(
    id: Int,
    visibility: Int
): VisibilitySetterAction.Builder

Sets the action to changes the visibility of a child view.

Parameters
id Int: view resource id of the children view.
visibility Int: one of View#VISIBLE, View#INVISIBLE, or View#GONE. Value is android.view.View#VISIBLE, android.view.View#INVISIBLE, or android.view.View#GONE
Return
VisibilitySetterAction.Builder This value cannot be null.
Exceptions
java.lang.IllegalArgumentException if visibility is not one of View#VISIBLE, View#INVISIBLE, or View#GONE.