package Ġcom . sh uy u . gs y github . gs y github app flutter Ċ Ċ import Ġandroid . os . Bundle Ċ Ċ import Ġio . flutter . app . Flutter Activity Ċ import Ġio . flutter . plugins . Generated Plugin Regist r ant Ċ import Ġio . flutter . plugin . common . Method Channel Ċ import Ġio . flutter . plugin . common . MethodCall Ċ Ċ class ĠMainActivity (): ĠFlutter Activity () Ġ{ ĊĠ Ġcompanion Ġobject { ĊĠĠĠ Ġconst Ġval ĠFL UT TER _ LOG Ġ= Ġ" android _ log " ĊĠ Ġ} ĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ ĠGenerated Plugin Regist r ant . register With ( this ) ĊĠĠĠ ĠUpdate Album Plugin . register ( this , Ġflutter View ) ĊĊĠĠĠ ĠMethod Channel ( flutter View , ĠFL UT TER _ LOG ). set MethodCall Handler Ġ{ Ġcall , Ġresult Ġ-> ĊĠĠĠĠĠ Ġlog Print ( call ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ// æĹ¥å¿Ĺ æıĴä»¶ ï¼Į ĊĠ Ġfun Ġlog Print ( call : MethodCall ){ ĊĠĠĠ Ġval Ġtag : ĠString ? Ġ= Ġcall . argument (" tag ") !! ĊĠĠĠ Ġval Ġmessage : String ? Ġ= Ġcall . argument (" message ") !! ĊĊĠĠĠ Ġwhen ( call . method ){ ĊĊĠĠĠĠĠ Ġ" Log I " Ġ-> Ġandroid . util . Log . i ( tag , message ) ĊĠĠĠ Ġ} ĊĊĠ Ġ} Ċ } Ċ