Flutter Engine
The Flutter Engine
Classes | Static Public Attributes | Protected Member Functions | List of all members
io.flutter.embedding.android.SplashShadowResources Class Reference
Inheritance diagram for io.flutter.embedding.android.SplashShadowResources:

Classes

interface  ResourcesReflector
 

Static Public Attributes

static final int SPLASH_DRAWABLE_ID = 191919
 
static final int THEMED_SPLASH_DRAWABLE_ID = 212121
 

Protected Member Functions

Drawable getDrawable (int id)
 
Drawable getDrawable (int id, @Nullable Resources.Theme theme)
 

Detailed Description

Definition at line 20 of file SplashShadowResources.java.

Member Function Documentation

◆ getDrawable() [1/2]

Drawable io.flutter.embedding.android.SplashShadowResources.getDrawable ( int  id)
inlineprotected

Definition at line 36 of file SplashShadowResources.java.

36 {
37 if (id == SPLASH_DRAWABLE_ID) {
38 return new ColorDrawable(Color.BLUE);
39 }
40 return reflector(Resources.class, resources).getDrawable(id);
41 }
SK_API sk_sp< SkShader > Color(SkColor)

◆ getDrawable() [2/2]

Drawable io.flutter.embedding.android.SplashShadowResources.getDrawable ( int  id,
@Nullable Resources.Theme  theme 
)
inlineprotected

Definition at line 44 of file SplashShadowResources.java.

44 {
45 if (id == THEMED_SPLASH_DRAWABLE_ID) {
46 // We pretend the drawable contains theme references. It can't be parsed without the app
47 // theme.
48 if (theme == null) {
49 throw new Resources.NotFoundException(
50 "Cannot parse drawable due to missing theme references.");
51 }
52 return new ColorDrawable(Color.GRAY);
53 }
54 return reflector(Resources.class, resources).getDrawable(id, theme);
55 }

Member Data Documentation

◆ SPLASH_DRAWABLE_ID

final int io.flutter.embedding.android.SplashShadowResources.SPLASH_DRAWABLE_ID = 191919
static

Definition at line 23 of file SplashShadowResources.java.

◆ THEMED_SPLASH_DRAWABLE_ID

final int io.flutter.embedding.android.SplashShadowResources.THEMED_SPLASH_DRAWABLE_ID = 212121
static

Definition at line 24 of file SplashShadowResources.java.


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