question: marks this producercontext as cancelled . this method does not call any callbacks . instead , caller of this method is responsible for iterating over returned list and calling appropriate method on each callback object . @see #calloncancellationrequested concode_field_sep ProducerListener mProducerListener concode_elem_sep Object mCallerContext concode_elem_sep boolean mIsPrefetch concode_elem_sep Priority mPriority concode_elem_sep boolean mIsIntermediateResultExpected concode_elem_sep boolean mIsCancelled concode_elem_sep String mId concode_elem_sep ImageRequest.RequestLevel mLowestPermittedRequestLevel concode_elem_sep ImageRequest mImageRequest concode_elem_sep List<ProducerContextCallbacks> mCallbacks concode_field_sep ImageRequest getImageRequest concode_elem_sep void cancel concode_elem_sep boolean isCancelled concode_elem_sep void addCallbacks concode_elem_sep List<ProducerContextCallbacks> setPriorityNoCallbacks concode_elem_sep List<ProducerContextCallbacks> setIsPrefetchNoCallbacks concode_elem_sep boolean isIntermediateResultExpected concode_elem_sep Object getCallerContext concode_elem_sep boolean isPrefetch concode_elem_sep String getId concode_elem_sep void callOnCancellationRequested concode_elem_sep void callOnPriorityChanged concode_elem_sep void callOnIsPrefetchChanged concode_elem_sep void callOnIsIntermediateResultExpectedChanged concode_elem_sep ImageRequest.RequestLevel getLowestPermittedRequestLevel concode_elem_sep Priority getPriority concode_elem_sep ProducerListener getListener concode_elem_sep List<ProducerContextCallbacks> setIsIntermediateResultExpectedNoCallbacks
target: List < ProducerContextCallbacks > function ( ) { if ( mIsCancelled ) { return null ; } mIsCancelled = true ; return new ArrayList < > ( mCallbacks ) ; }