package Ġcom . ak ex orc ist . screenshot detection . sample Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . ak ex orc ist . screenshot detection . sample . databinding . Activity Main Binding Ċ import Ġcom . google . android . material . sn ackbar . Snackbar Ċ Ċ class ĠMainActivity Ġ: ĠScreen shot Detection Activity () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġbinding : ĠActivity Main Binding Ġby Ġlazy Ġ{ ĠActivity Main Binding . inflate ( layout Inflater ) Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Screen Capt ured ( path : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ ĠSn ackbar . make ( binding . root , Ġpath , ĠSn ackbar . LENGTH _ SHORT ). show () ĊĠĠĠ Ġ} Ċ } Ċ