skipStaticMethod

abstract fun skipStaticMethod(): Boolean

true to prevent a static builder method from being generated.

By default static methods are generated for all methods annotated with GlideOption. These static factory methods allow for a cleaner API when used with com.bumptech.glide.RequestBuilder#apply. The static factory method by default simply creates a new com.bumptech.glide.request.RequestOptions object, calls the instance version of the method on it and returns it. For example:


public static GlideOptions noAnimation() {
  return new GlideOptions().dontAnimate();
}

See also