Package com.hendraanggrian.appcompat.picasso

Types

BaseCallbackBuilder
Link copied to clipboard
interface BaseCallbackBuilder
Partial callback builder, extended in pikasso-palette as well.
BaseTargetBuilder
Link copied to clipboard
interface BaseTargetBuilder
Partial target builder, extended in pikasso-palette as well.
CallbackBuilder
Link copied to clipboard
interface CallbackBuilder : BaseCallbackBuilder
Interface to build Callback with Kotlin DSL.
PicassoBuilder
Link copied to clipboard
interface PicassoBuilder
Interface to build Picasso instance with Kotlin DSL.
TargetBuilder
Link copied to clipboard
interface TargetBuilder : BaseTargetBuilder
Interface to build Target with Kotlin DSL.

Functions

buildPicasso
Link copied to clipboard
fun Context.buildPicasso(builder: PicassoBuilder.() -> Unit): Picasso
Start building a new Picasso instance with Kotlin DSL.
circle
Link copied to clipboard
fun RequestCreator.circle(): RequestCreator
Transform image to circle.
fetch
Link copied to clipboard
fun RequestCreator.fetch(builder: CallbackBuilder.() -> Unit)
Completes the request without target while listening to its callback with Kotlin DSL.
grayscale
Link copied to clipboard
fun RequestCreator.grayscale(): RequestCreator
Transform image to grayscale color.
into
Link copied to clipboard
fun RequestCreator.into(builder: TargetBuilder.() -> Unit): Target
Completes the request into a Target with Kotlin DSL, returning the Target created.
fun RequestCreator.into(target: ImageView, callback: CallbackBuilder.() -> Unit)
Completes the request into an ImageView while listening to its callback with Kotlin DSL.
fun RequestCreator.into(remoteViews: RemoteViews, @IdRes() viewId: Int, appWidgetIds: IntArray, callback: CallbackBuilder.() -> Unit)
Completes the request into a RemoteViews while listening to its callback with Kotlin DSL.
fun RequestCreator.into(remoteViews: RemoteViews, @IdRes() viewId: Int, notificationId: Int, notification: Notification, notificationTag: String?, callback: CallbackBuilder.() -> Unit)
Completes the request into a Notification while listening to its callback with Kotlin DSL.
mask
Link copied to clipboard
fun RequestCreator.mask(drawable: Drawable): RequestCreator
Transform image to masked.
overlay
Link copied to clipboard
fun RequestCreator.overlay(@ColorInt() color: Int): RequestCreator
Transform image to overlay color, transparency may be applied.
rounded
Link copied to clipboard
fun RequestCreator.rounded(radius: Float, margin: Float): RequestCreator
Transform image to rounded edge with defined radius and margin.
inline fun RequestCreator.rounded(radius: Int, margin: Int): RequestCreator
Transform image to rounded edge with defined radius and margin.
square
Link copied to clipboard
fun RequestCreator.square(): RequestCreator
Transform image to square.

Properties

picasso
Link copied to clipboard
val picasso: Picasso
The global Picasso instance.