SharedValues

public class SharedValues
extends Object

java.lang.Object
   ↳ androidx.constraintlayout.widget.SharedValues


Shared values

Summary

Nested classes

interface SharedValues.SharedValuesListener

 

Constants

int UNSET

Public constructors

SharedValues()

Public methods

void addListener(int key, SharedValues.SharedValuesListener listener)
void clearListeners()
void fireNewValue(int key, int value)
int getValue(int key)
void removeListener(SharedValues.SharedValuesListener listener)
void removeListener(int key, SharedValues.SharedValuesListener listener)

Inherited methods

Constants

UNSET

public static final int UNSET

Constant Value: -1 (0xffffffff)

Public constructors

SharedValues

public SharedValues ()

Public methods

addListener

public void addListener (int key, 
                SharedValues.SharedValuesListener listener)

Parameters
key int

listener SharedValues.SharedValuesListener

clearListeners

public void clearListeners ()

fireNewValue

public void fireNewValue (int key, 
                int value)

Parameters
key int

value int

getValue

public int getValue (int key)

Parameters
key int

Returns
int

removeListener

public void removeListener (SharedValues.SharedValuesListener listener)

Parameters
listener SharedValues.SharedValuesListener

removeListener

public void removeListener (int key, 
                SharedValues.SharedValuesListener listener)

Parameters
key int

listener SharedValues.SharedValuesListener