Метод |
Описание |
|
SelfDisposingBitmapDrawable ( ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( Android.Graphics.Bitmap bitmap ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( IntPtr handle, JniHandleOwnership transfer ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( Resources resources ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( Resources resources, Android.Graphics.Bitmap bitmap ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( Resources resources, Stream stream ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( Resources resources, string filePath ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( Stream stream ) : Android.Content.Res |
|
|
SelfDisposingBitmapDrawable ( string filePath ) : Android.Content.Res |
|
|
SetIsCached ( bool isCached ) : void |
This should only be called by caching entities. Increments or decrements the cache reference count. This count represents if the instance is cached by something and should not free its resources when no longer displayed. |
|
SetIsDisplayed ( bool isDisplayed ) : void |
This should only be called by Views that are actually going to draw the drawable. Increments or decrements the internal displayed reference count. If the internal reference count becomes 0, NoLongerDisplayed will be raised. If the internal reference count becomes 1, Displayed will be raised. This method should be called from the main thread. |
|
SetIsRetained ( bool isRetained ) : void |
If you wish to use the instance beyond the lifecycle managed by the caching entity call this method with true. But be aware that you must also have the same number of calls with false or the instance and its resources will be leaked. Also be aware that once retained, the caching entity will not allow the internal Bitmap allocation to be reused. Retaining an instance does not guarantee it a place in the cache, it can be evicted at any time. |
|
SetNoLongerDisplayed ( ) : void |
|
|