AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.DonutUtil Class Reference

Static Public Member Functions

static void buildDrawingCache (View view, boolean autoScale)
 
static Bitmap getDrawingCache (View view, boolean autoScale)
 

Detailed Description

Helper methods for calling methods added in Donut (1.6, API level 4).

Author
lizlo.nosp@m.oney.nosp@m.@goog.nosp@m.le.c.nosp@m.om (Liz Looney)

Definition at line 17 of file DonutUtil.java.

Member Function Documentation

◆ buildDrawingCache()

static void com.google.appinventor.components.runtime.util.DonutUtil.buildDrawingCache ( View  view,
boolean  autoScale 
)
static

Calls View#buildDrawingCache(boolean). If you call this manually without calling setDrawingCacheEnabled(true), you should clean up by calling View#destroyDrawingCache() afterward.

Parameters
viewwhat to build a drawing cache of

Definition at line 29 of file DonutUtil.java.

◆ getDrawingCache()

static Bitmap com.google.appinventor.components.runtime.util.DonutUtil.getDrawingCache ( View  view,
boolean  autoScale 
)
static

Calls View#getDrawingCache(boolean).

Returns
A bitmap representing this view, or null if caching is disabled or View#buildDrawingCache(boolean) has not been called

Definition at line 39 of file DonutUtil.java.


The documentation for this class was generated from the following file: