Skip to content

Add a Listener When Screenshot is Taken #1

@muzeasd

Description

@muzeasd

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions