Selfie

Additional

Language
Java
Version
1.0.0 (Oct 11, 2016)
Created
Sep 26, 2016
Updated
Nov 24, 2016 (Retired)
Owner
Marcos Placona (mplacona)
Contributors
Marcos Placona (mplacona)
IzanRodrigo
2
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

selfie

A simple library to make taking screenshots of your apps a breeze.

With the Marshmallow release and the new permissions model, taking screenshots of your applications has become just slightly more complicated as you need to deal with permissions on the run.

This library does it all for you regardless of the device you're running it on.


Usage

Two easy steps:

  1. From the activity you want to take screenshots or the application class initialise the Selfie.

  2. Obtain Selfie's instance and use it throughout your app.

Initialising Selfie

Using default configuration:

Selfie.initWithDefaults();

Using builder:

Selfie.initWithBuilder(new Selfie.Builder()
                .fileFormat("yyyy-MM-dd_hh:mm:ss")
                .path(Environment.getExternalStorageDirectory())
                .quality(100));

Taking a screenshot

Selfie.getInstance().snap(MainActivity.this);

Downloading

compile 'uk.co.placona.selfie:selfie:1.0.0'