MCPcopy Create free account
hub / github.com/golang/mobile / onCreate

Function onCreate

app/android.go:127–134  ·  view source on GitHub ↗

export onCreate

(activity *C.ANativeActivity)

Source from the content-addressed store, hash-verified

125
126//export onCreate
127func onCreate(activity *C.ANativeActivity) {
128 // Set the initial configuration.
129 //
130 // Note we use unbuffered channels to talk to the activity loop, and
131 // NativeActivity calls these callbacks sequentially, so configuration
132 // will be set before <-windowRedrawNeeded is processed.
133 windowConfigChange <- windowConfigRead(activity)
134}
135
136//export onDestroy
137func onDestroy(activity *C.ANativeActivity) {

Callers

nothing calls this directly

Calls 1

windowConfigReadFunction · 0.85

Tested by

no test coverage detected