-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
public class MultiCallback implements Drawable.Callback
-
-
Constructor Summary
Constructors Constructor Description MultiCallback()
Equivalent to MultiCallback with false
value.MultiCallback(boolean useViewInvalidate)
Set useViewInvalidate
totrue
if displayed Drawable is not supported by invalidateDrawable of the target.
-
Method Summary
Modifier and Type Method Description void
invalidateDrawable(@NonNull() Drawable who)
void
scheduleDrawable(@NonNull() Drawable who, @NonNull() Runnable what, long when)
void
unscheduleDrawable(@NonNull() Drawable who, @NonNull() Runnable what)
void
addView(Drawable.Callback callback)
Associates given Callback. void
removeView(Drawable.Callback callback)
Disassociates given Callback. -
-
Constructor Detail
-
MultiCallback
MultiCallback()
Equivalent to MultiCallback withfalse
value.
-
MultiCallback
MultiCallback(boolean useViewInvalidate)
SetuseViewInvalidate
totrue
if displayed Drawable is not supported by invalidateDrawable of the target.- Parameters:
useViewInvalidate
- whether invalidate should be used instead of invalidateDrawable
-
-
Method Detail
-
invalidateDrawable
void invalidateDrawable(@NonNull() Drawable who)
-
scheduleDrawable
void scheduleDrawable(@NonNull() Drawable who, @NonNull() Runnable what, long when)
-
unscheduleDrawable
void unscheduleDrawable(@NonNull() Drawable who, @NonNull() Runnable what)
-
addView
void addView(Drawable.Callback callback)
Associates given Callback. If callback has been already added, nothing happens.
- Parameters:
callback
- Callback to be associated
-
removeView
void removeView(Drawable.Callback callback)
Disassociates given Callback. If callback is not associated, nothing happens.
- Parameters:
callback
- Callback to be disassociated
-
-
-
-