Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

ExternalInput

public abstract @interface ExternalInput
implements Annotation

androidx.remotecallback.ExternalInput


Identifies parameters of an RemoteCallable that will be pulled from the caller of the callback. The key to pull the value from will be specified in value(). Any value passed to this parameter during creation of the callback will be ignored.

.
 createRemoteCallback(context, "setSliderValue", R.id.slider_1, 0 /* ingored *\/);
 createRemoteCallback(context, "setSliderValue", R.id.slider_2, 0 /* ingored *\/);
 createRemoteCallback(context, "setSliderValue", R.id.slider_3, 0 /* ingored *\/);

 \@RemoteCallable
 public MyClass setSliderValue(int slideId, @ExternalInput int newValue) {
   ...
   return this;
 }

Summary

Public methods

String value()

The key to pull the actual value of this parameter from.

Inherited methods

Public methods

value

public String value ()

The key to pull the actual value of this parameter from.

Returns
String