screenshot icon indicating copy to clipboard operation
screenshot copied to clipboard

Add a Listener When Screenshot is Taken

Open muzeasd opened this issue 6 years ago • 0 comments

Hi. Thanks for the great work. Can we add some kind of listener, for the purpose of showing a toast within it, when the screenshot actually has been taken? Following piece of code shows what I want to do

Screenshot.with(activityReference).getScreenshot().addSnapshotListener(new SnapshotListener(){
  void onSnapshottaken(Bitmap bmp){
    bmp.save();
    Toast.makeText(......).show();
  }
});

Thanks for any input :)

muzeasd avatar Sep 05 '19 09:09 muzeasd