Skip to content

Instantly share code, notes, and snippets.

@mnirfan
Last active March 21, 2025 06:36
Show Gist options
  • Select an option

  • Save mnirfan/c5fa29b23153cd959990dc7d0a5bcd37 to your computer and use it in GitHub Desktop.

Select an option

Save mnirfan/c5fa29b23153cd959990dc7d0a5bcd37 to your computer and use it in GitHub Desktop.
...
import com.lynx.tasm.LynxEnv
+import com.nurulirfan.lynx.accessibilityelements.PlainView
class YourApplication : Application() {
...
private fun initLynxEnv() {
+ LynxEnv.inst().addBehavior(object : Behavior("plain-view") {
+ override fun createUI(context: LynxContext): PlainView {
+ return PlainView(context)
+ }
+ })
LynxEnv.inst().init(
this,
null,
null,
null
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment