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

BinderThread

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.VALUE_PARAMETER]) class BinderThread
androidx.annotation.BinderThread

Denotes that the annotated method should only be called on the binder thread. If the annotated element is a class, then all methods in the class should be called on the binder thread.

Example:

@BinderThread
   public BeamShareData createBeamShareData() { ... }
  

Summary

Public constructors

Denotes that the annotated method should only be called on the binder thread.

Public constructors

<init>

BinderThread()

Denotes that the annotated method should only be called on the binder thread. If the annotated element is a class, then all methods in the class should be called on the binder thread.

Example:

@BinderThread
   public BeamShareData createBeamShareData() { ... }