Skip to content

roamtouch/gestureaction-takeselfie-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

GestureKit Technology

Gesture Action Take Selfie For RKT Launcher.

An action for Android taking a picture with a gesture and storing it on the hdcard.

You can see the selfie working on RKT Launcher, check the PLAY STORE.

Setup

Set the Action Gesture once GestureKit is loaded

Follow the Andoid Addon Guide to set the GestureKit library.

With the setGestureKitListener interface on the gesturekit object, you can listen to loaded method and set the GestureActionTakeSelfie with the name parameter "Selfie".

	this.gestureKit.setGestureKitListener(new GestureKitListener() {
		
		@Override
		public void onGestureKitLoaded() {
			GestureKitPlugins.getInstance().setAction(	
					new GestureActionTakeSelfie (mActivity), "Selfie"); 				
		};  			
		
	});	

How it works

GestureActionTakeSelfie implements GKActionInterface that exposes the gesture name with getActionID() method to the API.

Once a gesture is recognized with the same name ("Selfie"), then onGestureRecognized is called.

	@Override
	public String getActionID() {		
		return "Selfie";
	}
	@Override
	public void onGestureRecognized(Object... params) {
		// Take selfie code here. 
	}
	

Maintained by

Credits

RoamTouch logo

RoamTouch

RoamTouch logo

GestureKit

License

Licensed under Apache v2 License.

Copyright (c) 2014 RoamTouch.

About

GestureAction that takes a selfie on Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages