Google is committed to advancing racial equity for Black communities. See how.

Toggle

public class Toggle
extends Object

java.lang.Object
   ↳ com.google.android.libraries.car.app.model.Toggle


Represents a toggle that can have either a checked or unchecked state.

Summary

Nested classes

class Toggle.Builder

A builder of Toggle

interface Toggle.OnCheckedChangeListener

A listener for handling checked state change events. 

Public methods

static Toggle.Builder builder(Toggle.OnCheckedChangeListener onCheckedChangeListener)

Constructs a new builder of Toggle.

boolean equals(Object other)
int hashCode()
String toString()

Inherited methods

Public methods

builder

public static Toggle.Builder builder (Toggle.OnCheckedChangeListener onCheckedChangeListener)

Constructs a new builder of Toggle.

Parameters
onCheckedChangeListener Toggle.OnCheckedChangeListener

Returns
Toggle.Builder

Throws
NullPointerException if onCheckedChangeListener is null.

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String