package Ġio . github . nullptr x . uuid _ helper Ċ Ċ import Ġandroidx . annotation . NonNull ; Ċ Ċ import Ġio . flutter . embedding . engine . plugins . Flutter Plugin Ċ import Ġio . flutter . plugin . common . MethodCall Ċ import Ġio . flutter . plugin . common . Method Channel Ċ import Ġio . flutter . plugin . common . Method Channel . MethodCall Handler Ċ import Ġio . flutter . plugin . common . Method Channel . Result Ċ import Ġio . flutter . plugin . common . Plugin Registry . Registrar Ċ Ċ /** ĠU uid Helper Plugin Ġ*/ Ċ public Ġclass ĠU uid Helper Plugin Ġ: ĠFlutter Plugin , ĠMethod Call Handler Ġ{ ĊĠ Ġprivate Ġlateinit Ġvar Ġchannel : ĠMethod Channel ĊĊĠ Ġoverride Ġfun Ġon Attached To Engine (@ NonNull Ġflutter Plugin Binding : ĠFlutter Plugin . Flutter Plugin Binding ) Ġ{ ĊĠĠĠ Ġchannel Ġ= ĠMethod Channel ( flutter Plugin Binding . flutter Engine . dart Executor , Ġk Channel Name ) ĊĠĠĠ Ġchannel . set MethodCall Handler ( this ); ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġval Ġk Channel Name Ġ= Ġ" nullptr x . github . io / uuid _ helper " ĊĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġregister With ( regist rar : ĠRegist rar ) Ġ{ ĊĠĠĠĠĠ Ġval Ġchannel Ġ= ĠMethod Channel ( regist rar . messenger (), Ġk Channel Name ) ĊĠĠĠĠĠ Ġchannel . set MethodCall Handler ( Uuid Helper Plugin ()) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon MethodCall (@ NonNull Ġcall : ĠMethod Call , Ġ@ NonNull Ġresult : ĠResult ) Ġ{ ĊĠĠĠ Ġif Ġ( call . method Ġ== Ġ" get UniqueId ") Ġ{ ĊĠĠĠĠĠ Ġval Ġuuid Ġ= ĠDevice ID Util . unique ID ĊĠĠĠĠĠ Ġresult . success ( uuid ) ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠ Ġresult . not Implemented () ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Detached From Engine (@ NonNull Ġbinding : ĠFlutter Plugin . Flutter Plugin Binding ) Ġ{ ĊĠĠĠ Ġchannel . set MethodCall Handler ( null ) ĊĠ Ġ} Ċ } Ċ