Definition at line 13 of file ViewerApplication.java.
◆ [static initializer]()
◆ getNativeHandle()
long org.skia.viewer.ViewerApplication.getNativeHandle |
( |
| ) |
|
|
inline |
◆ onCreate()
void org.skia.viewer.ViewerApplication.onCreate |
( |
| ) |
|
|
inline |
Definition at line 26 of file ViewerApplication.java.
26 {
27 super.onCreate();
28 mNativeHandle = createNativeApp(this.getResources().getAssets());
29 }
◆ onTerminate()
void org.skia.viewer.ViewerApplication.onTerminate |
( |
| ) |
|
|
inline |
Definition at line 32 of file ViewerApplication.java.
32 {
33 if (mNativeHandle != 0) {
34 destroyNativeApp(mNativeHandle);
35 mNativeHandle = 0;
36 }
37 super.onTerminate();
38 }
◆ setState()
void org.skia.viewer.ViewerApplication.setState |
( |
String |
stateJsonStr | ) |
|
|
inline |
Definition at line 73 of file ViewerApplication.java.
73 {
74
75
76 mStateJsonStr = stateJsonStr;
77 if (mViewerActivity != null) {
78 mViewerActivity.runOnUiThread(new Runnable() {
79 @Override
81 mViewerActivity.
setState(mStateJsonStr);
82 }
83 });
84 }
85 }
void setState(String stateJson)
◆ setTitle()
void org.skia.viewer.ViewerApplication.setTitle |
( |
String |
title | ) |
|
|
inline |
Definition at line 58 of file ViewerApplication.java.
58 {
59 mTitle = title;
60 if (mTitle.startsWith("Viewer: ")) {
61 mTitle = mTitle.replaceFirst("Viewer: ", "");
62 }
63 if (mViewerActivity != null) {
64 mViewerActivity.runOnUiThread(new Runnable() {
65 @Override
67 mViewerActivity.setTitle(mTitle);
68 }
69 });
70 }
71 }
◆ setViewerActivity()
void org.skia.viewer.ViewerApplication.setViewerActivity |
( |
ViewerActivity |
viewerActivity | ) |
|
|
inline |
Definition at line 44 of file ViewerApplication.java.
44 {
45 mViewerActivity = viewerActivity;
46
47 if (mViewerActivity != null) {
48
49 if (mStateJsonStr != null) {
50 mViewerActivity.
setState(mStateJsonStr);
51 }
52 if (mTitle != null) {
53 mViewerActivity.setTitle(mTitle);
54 }
55 }
56 }
The documentation for this class was generated from the following file: