Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

ExternalInput

@Target([AnnotationTarget.VALUE_PARAMETER]) class ExternalInput
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 constructors
<init>(value: String)

Identifies parameters of an RemoteCallable that will be pulled from the caller of the callback.

Properties
String

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

Public constructors

<init>

ExternalInput(value: String)

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;
  }

Properties

value

val value: String

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