public class PhotoEditorIntent
extends android.content.Intent
| Modifier and Type | Class and Description |
|---|---|
static class |
ly.img.android.ui.activities.ImgLyIntent.Directory |
protected static class |
ly.img.android.ui.activities.ImgLyIntent.Extra |
| Modifier and Type | Field and Description |
|---|---|
protected android.app.Activity |
activity |
ACTION_AIRPLANE_MODE_CHANGED, ACTION_ALL_APPS, ACTION_ANSWER, ACTION_APP_ERROR, ACTION_APPLICATION_RESTRICTIONS_CHANGED, ACTION_ASSIST, ACTION_ATTACH_DATA, ACTION_BATTERY_CHANGED, ACTION_BATTERY_LOW, ACTION_BATTERY_OKAY, ACTION_BOOT_COMPLETED, ACTION_BUG_REPORT, ACTION_CALL, ACTION_CALL_BUTTON, ACTION_CAMERA_BUTTON, ACTION_CHOOSER, ACTION_CLOSE_SYSTEM_DIALOGS, ACTION_CONFIGURATION_CHANGED, ACTION_CREATE_DOCUMENT, ACTION_CREATE_SHORTCUT, ACTION_DATE_CHANGED, ACTION_DEFAULT, ACTION_DELETE, ACTION_DEVICE_STORAGE_LOW, ACTION_DEVICE_STORAGE_OK, ACTION_DIAL, ACTION_DOCK_EVENT, ACTION_DREAMING_STARTED, ACTION_DREAMING_STOPPED, ACTION_EDIT, ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE, ACTION_FACTORY_TEST, ACTION_GET_CONTENT, ACTION_GET_RESTRICTION_ENTRIES, ACTION_GTALK_SERVICE_CONNECTED, ACTION_GTALK_SERVICE_DISCONNECTED, ACTION_HEADSET_PLUG, ACTION_INPUT_METHOD_CHANGED, ACTION_INSERT, ACTION_INSERT_OR_EDIT, ACTION_INSTALL_PACKAGE, ACTION_LOCALE_CHANGED, ACTION_MAIN, ACTION_MANAGE_NETWORK_USAGE, ACTION_MANAGE_PACKAGE_STORAGE, ACTION_MANAGED_PROFILE_ADDED, ACTION_MANAGED_PROFILE_REMOVED, ACTION_MEDIA_BAD_REMOVAL, ACTION_MEDIA_BUTTON, ACTION_MEDIA_CHECKING, ACTION_MEDIA_EJECT, ACTION_MEDIA_MOUNTED, ACTION_MEDIA_NOFS, ACTION_MEDIA_REMOVED, ACTION_MEDIA_SCANNER_FINISHED, ACTION_MEDIA_SCANNER_SCAN_FILE, ACTION_MEDIA_SCANNER_STARTED, ACTION_MEDIA_SHARED, ACTION_MEDIA_UNMOUNTABLE, ACTION_MEDIA_UNMOUNTED, ACTION_MY_PACKAGE_REPLACED, ACTION_NEW_OUTGOING_CALL, ACTION_OPEN_DOCUMENT, ACTION_OPEN_DOCUMENT_TREE, ACTION_PACKAGE_ADDED, ACTION_PACKAGE_CHANGED, ACTION_PACKAGE_DATA_CLEARED, ACTION_PACKAGE_FIRST_LAUNCH, ACTION_PACKAGE_FULLY_REMOVED, ACTION_PACKAGE_INSTALL, ACTION_PACKAGE_NEEDS_VERIFICATION, ACTION_PACKAGE_REMOVED, ACTION_PACKAGE_REPLACED, ACTION_PACKAGE_RESTARTED, ACTION_PACKAGE_VERIFIED, ACTION_PASTE, ACTION_PICK, ACTION_PICK_ACTIVITY, ACTION_POWER_CONNECTED, ACTION_POWER_DISCONNECTED, ACTION_POWER_USAGE_SUMMARY, ACTION_PROCESS_TEXT, ACTION_PROVIDER_CHANGED, ACTION_QUICK_CLOCK, ACTION_REBOOT, ACTION_RUN, ACTION_SCREEN_OFF, ACTION_SCREEN_ON, ACTION_SEARCH, ACTION_SEARCH_LONG_PRESS, ACTION_SEND, ACTION_SEND_MULTIPLE, ACTION_SENDTO, ACTION_SET_WALLPAPER, ACTION_SHUTDOWN, ACTION_SYNC, ACTION_SYSTEM_TUTORIAL, ACTION_TIME_CHANGED, ACTION_TIME_TICK, ACTION_TIMEZONE_CHANGED, ACTION_UID_REMOVED, ACTION_UMS_CONNECTED, ACTION_UMS_DISCONNECTED, ACTION_UNINSTALL_PACKAGE, ACTION_USER_BACKGROUND, ACTION_USER_FOREGROUND, ACTION_USER_INITIALIZE, ACTION_USER_PRESENT, ACTION_VIEW, ACTION_VOICE_COMMAND, ACTION_WALLPAPER_CHANGED, ACTION_WEB_SEARCH, CATEGORY_ALTERNATIVE, CATEGORY_APP_BROWSER, CATEGORY_APP_CALCULATOR, CATEGORY_APP_CALENDAR, CATEGORY_APP_CONTACTS, CATEGORY_APP_EMAIL, CATEGORY_APP_GALLERY, CATEGORY_APP_MAPS, CATEGORY_APP_MARKET, CATEGORY_APP_MESSAGING, CATEGORY_APP_MUSIC, CATEGORY_BROWSABLE, CATEGORY_CAR_DOCK, CATEGORY_CAR_MODE, CATEGORY_DEFAULT, CATEGORY_DESK_DOCK, CATEGORY_DEVELOPMENT_PREFERENCE, CATEGORY_EMBED, CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST, CATEGORY_HE_DESK_DOCK, CATEGORY_HOME, CATEGORY_INFO, CATEGORY_LAUNCHER, CATEGORY_LE_DESK_DOCK, CATEGORY_LEANBACK_LAUNCHER, CATEGORY_MONKEY, CATEGORY_OPENABLE, CATEGORY_PREFERENCE, CATEGORY_SAMPLE_CODE, CATEGORY_SELECTED_ALTERNATIVE, CATEGORY_TAB, CATEGORY_TEST, CATEGORY_UNIT_TEST, CATEGORY_VOICE, CREATOR, EXTRA_ALARM_COUNT, EXTRA_ALLOW_MULTIPLE, EXTRA_ALLOW_REPLACE, EXTRA_ALTERNATE_INTENTS, EXTRA_ASSIST_CONTEXT, EXTRA_ASSIST_INPUT_DEVICE_ID, EXTRA_ASSIST_INPUT_HINT_KEYBOARD, EXTRA_ASSIST_PACKAGE, EXTRA_ASSIST_UID, EXTRA_BCC, EXTRA_BUG_REPORT, EXTRA_CC, EXTRA_CHANGED_COMPONENT_NAME, EXTRA_CHANGED_COMPONENT_NAME_LIST, EXTRA_CHANGED_PACKAGE_LIST, EXTRA_CHANGED_UID_LIST, EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER, EXTRA_CHOSEN_COMPONENT, EXTRA_CHOSEN_COMPONENT_INTENT_SENDER, EXTRA_DATA_REMOVED, EXTRA_DOCK_STATE, EXTRA_DOCK_STATE_CAR, EXTRA_DOCK_STATE_DESK, EXTRA_DOCK_STATE_HE_DESK, EXTRA_DOCK_STATE_LE_DESK, EXTRA_DOCK_STATE_UNDOCKED, EXTRA_DONT_KILL_APP, EXTRA_EMAIL, EXTRA_HTML_TEXT, EXTRA_INITIAL_INTENTS, EXTRA_INSTALLER_PACKAGE_NAME, EXTRA_INTENT, EXTRA_KEY_EVENT, EXTRA_LOCAL_ONLY, EXTRA_MIME_TYPES, EXTRA_NOT_UNKNOWN_SOURCE, EXTRA_ORIGINATING_URI, EXTRA_PHONE_NUMBER, EXTRA_PROCESS_TEXT, EXTRA_PROCESS_TEXT_READONLY, EXTRA_REFERRER, EXTRA_REFERRER_NAME, EXTRA_REMOTE_INTENT_TOKEN, EXTRA_REPLACEMENT_EXTRAS, EXTRA_REPLACING, EXTRA_RESTRICTIONS_BUNDLE, EXTRA_RESTRICTIONS_INTENT, EXTRA_RESTRICTIONS_LIST, EXTRA_RESULT_RECEIVER, EXTRA_RETURN_RESULT, EXTRA_SHORTCUT_ICON, EXTRA_SHORTCUT_ICON_RESOURCE, EXTRA_SHORTCUT_INTENT, EXTRA_SHORTCUT_NAME, EXTRA_SHUTDOWN_USERSPACE_ONLY, EXTRA_STREAM, EXTRA_SUBJECT, EXTRA_TEMPLATE, EXTRA_TEXT, EXTRA_TITLE, EXTRA_UID, EXTRA_USER, FILL_IN_ACTION, FILL_IN_CATEGORIES, FILL_IN_CLIP_DATA, FILL_IN_COMPONENT, FILL_IN_DATA, FILL_IN_PACKAGE, FILL_IN_SELECTOR, FILL_IN_SOURCE_BOUNDS, FLAG_ACTIVITY_BROUGHT_TO_FRONT, FLAG_ACTIVITY_CLEAR_TASK, FLAG_ACTIVITY_CLEAR_TOP, FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS, FLAG_ACTIVITY_FORWARD_RESULT, FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY, FLAG_ACTIVITY_MULTIPLE_TASK, FLAG_ACTIVITY_NEW_DOCUMENT, FLAG_ACTIVITY_NEW_TASK, FLAG_ACTIVITY_NO_ANIMATION, FLAG_ACTIVITY_NO_HISTORY, FLAG_ACTIVITY_NO_USER_ACTION, FLAG_ACTIVITY_PREVIOUS_IS_TOP, FLAG_ACTIVITY_REORDER_TO_FRONT, FLAG_ACTIVITY_RESET_TASK_IF_NEEDED, FLAG_ACTIVITY_RETAIN_IN_RECENTS, FLAG_ACTIVITY_SINGLE_TOP, FLAG_ACTIVITY_TASK_ON_HOME, FLAG_DEBUG_LOG_RESOLUTION, FLAG_EXCLUDE_STOPPED_PACKAGES, FLAG_FROM_BACKGROUND, FLAG_GRANT_PERSISTABLE_URI_PERMISSION, FLAG_GRANT_PREFIX_URI_PERMISSION, FLAG_GRANT_READ_URI_PERMISSION, FLAG_GRANT_WRITE_URI_PERMISSION, FLAG_INCLUDE_STOPPED_PACKAGES, FLAG_RECEIVER_FOREGROUND, FLAG_RECEIVER_NO_ABORT, FLAG_RECEIVER_REGISTERED_ONLY, FLAG_RECEIVER_REPLACE_PENDING, METADATA_DOCK_HOME, URI_ALLOW_UNSAFE, URI_ANDROID_APP_SCHEME, URI_INTENT_SCHEME| Constructor and Description |
|---|
PhotoEditorIntent(android.app.Activity activity) |
PhotoEditorIntent(android.content.Intent intent,
android.app.Activity activity) |
| Modifier and Type | Method and Description |
|---|---|
PhotoEditorIntent |
destroySourceAfterSave(boolean destroy)
Enable or disable source image destroy after save.
|
protected boolean |
getDestroySourceAfterSave() |
protected java.lang.String |
getExportPath() |
protected java.lang.String |
getExportPrefix() |
AbstractConfig.ImageFilterInterface |
getFilter() |
protected int |
getJpegQuality() |
java.lang.String |
getSourceImage() |
android.content.Intent |
putCharSequenceArrayListExtra(java.lang.String name,
java.util.ArrayList<java.lang.CharSequence> value) |
android.content.Intent |
putExtra(java.lang.String name,
boolean value) |
android.content.Intent |
putExtra(java.lang.String name,
boolean[] value) |
android.content.Intent |
putExtra(java.lang.String name,
android.os.Bundle value) |
android.content.Intent |
putExtra(java.lang.String name,
byte value) |
android.content.Intent |
putExtra(java.lang.String name,
byte[] value) |
android.content.Intent |
putExtra(java.lang.String name,
char value) |
android.content.Intent |
putExtra(java.lang.String name,
char[] value) |
android.content.Intent |
putExtra(java.lang.String name,
java.lang.CharSequence value) |
android.content.Intent |
putExtra(java.lang.String name,
java.lang.CharSequence[] value) |
android.content.Intent |
putExtra(java.lang.String name,
double value) |
android.content.Intent |
putExtra(java.lang.String name,
double[] value) |
android.content.Intent |
putExtra(java.lang.String name,
float value) |
android.content.Intent |
putExtra(java.lang.String name,
float[] value) |
android.content.Intent |
putExtra(java.lang.String name,
int value) |
android.content.Intent |
putExtra(java.lang.String name,
int[] value) |
android.content.Intent |
putExtra(java.lang.String name,
long value) |
android.content.Intent |
putExtra(java.lang.String name,
long[] value) |
android.content.Intent |
putExtra(java.lang.String name,
android.os.Parcelable value) |
android.content.Intent |
putExtra(java.lang.String name,
android.os.Parcelable[] value) |
android.content.Intent |
putExtra(java.lang.String name,
java.io.Serializable value) |
android.content.Intent |
putExtra(java.lang.String name,
short value) |
android.content.Intent |
putExtra(java.lang.String name,
short[] value) |
android.content.Intent |
putExtra(java.lang.String name,
java.lang.String value) |
android.content.Intent |
putExtra(java.lang.String name,
java.lang.String[] value) |
android.content.Intent |
putIntegerArrayListExtra(java.lang.String name,
java.util.ArrayList<java.lang.Integer> value) |
android.content.Intent |
putParcelableArrayListExtra(java.lang.String name,
java.util.ArrayList<? extends android.os.Parcelable> value) |
android.content.Intent |
putStringArrayListExtra(java.lang.String name,
java.util.ArrayList<java.lang.String> value) |
PhotoEditorIntent |
setExportDir(ly.img.android.ui.activities.ImgLyIntent.Directory directory,
java.lang.String folderName)
Set the Export directory save path of the result image.
|
PhotoEditorIntent |
setExportDir(java.lang.String path)
Set the Export directory save path of the result image.
|
PhotoEditorIntent |
setExportPrefix(java.lang.String prefix)
Set the image save name prefix.
|
PhotoEditorIntent |
setFilter(AbstractConfig.ImageFilterInterface filter)
Set a preselected filter
|
PhotoEditorIntent |
setJpegQuality(int quality)
Set teh save quality of the jpeg.
|
PhotoEditorIntent |
setSourceImagePath(java.lang.String path)
Set part of the Source image.
|
void |
startActivityForResult(int resultId)
Start the Activity and return the result at the end.
|
void |
startActivityForResult(int resultId,
java.lang.String[] permissions)
Start the Activity and return the result at the end.
|
addCategory, addFlags, clone, cloneFilter, createChooser, createChooser, describeContents, fillIn, filterEquals, filterHashCode, getAction, getBooleanArrayExtra, getBooleanExtra, getBundleExtra, getByteArrayExtra, getByteExtra, getCategories, getCharArrayExtra, getCharExtra, getCharSequenceArrayExtra, getCharSequenceArrayListExtra, getCharSequenceExtra, getClipData, getComponent, getData, getDataString, getDoubleArrayExtra, getDoubleExtra, getExtras, getFlags, getFloatArrayExtra, getFloatExtra, getIntArrayExtra, getIntegerArrayListExtra, getIntent, getIntentOld, getIntExtra, getLongArrayExtra, getLongExtra, getPackage, getParcelableArrayExtra, getParcelableArrayListExtra, getParcelableExtra, getScheme, getSelector, getSerializableExtra, getShortArrayExtra, getShortExtra, getSourceBounds, getStringArrayExtra, getStringArrayListExtra, getStringExtra, getType, hasCategory, hasExtra, hasFileDescriptors, makeMainActivity, makeMainSelectorActivity, makeRestartActivityTask, normalizeMimeType, parseIntent, parseUri, putExtras, putExtras, readFromParcel, removeCategory, removeExtra, replaceExtras, replaceExtras, resolveActivity, resolveActivityInfo, resolveType, resolveType, resolveTypeIfNeeded, setAction, setClass, setClassName, setClassName, setClipData, setComponent, setData, setDataAndNormalize, setDataAndType, setDataAndTypeAndNormalize, setExtrasClassLoader, setFlags, setPackage, setSelector, setSourceBounds, setType, setTypeAndNormalize, toString, toURI, toUri, writeToParcelpublic PhotoEditorIntent(android.content.Intent intent,
android.app.Activity activity)
public PhotoEditorIntent(android.app.Activity activity)
@NonNull public PhotoEditorIntent setSourceImagePath(java.lang.String path)
path - the absolute image path.public java.lang.String getSourceImage()
@NonNull public PhotoEditorIntent setExportDir(java.lang.String path)
path - the absolutely save directory@NonNull public PhotoEditorIntent setExportDir(@NonNull ly.img.android.ui.activities.ImgLyIntent.Directory directory, @NonNull java.lang.String folderName)
directory - A specific system directoryfolderName - A folder name will saved in the system directory.@NonNull public PhotoEditorIntent destroySourceAfterSave(boolean destroy)
destroy - if true the source image will be destroyes after save.@NonNull public PhotoEditorIntent setExportPrefix(java.lang.String prefix)
prefix - @NonNull public PhotoEditorIntent setFilter(@Nullable AbstractConfig.ImageFilterInterface filter)
filter - the ImageFilter that will be preselected.public AbstractConfig.ImageFilterInterface getFilter()
@NonNull public PhotoEditorIntent setJpegQuality(int quality)
quality - Image save Quality. A value of 0 is poor but has a small file size and a value of 100 is excellent but have a large file size.protected boolean getDestroySourceAfterSave()
protected int getJpegQuality()
protected java.lang.String getExportPath()
protected java.lang.String getExportPrefix()
public void startActivityForResult(int resultId)
resultId - the result id to identifier the result.public void startActivityForResult(int resultId,
@NonNull
java.lang.String[] permissions)
resultId - the result id to identifier the result.permissions - Permission that muss be accept for Android 6.0 and above@NonNull
public android.content.Intent putExtra(java.lang.String name,
boolean value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
byte value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
char value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
short value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
int value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
long value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
float value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
double value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
java.lang.String value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
java.lang.CharSequence value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
android.os.Parcelable value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
android.os.Parcelable[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
java.io.Serializable value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
boolean[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
byte[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
short[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
char[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
int[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
long[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
float[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
double[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
java.lang.String[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
java.lang.CharSequence[] value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putExtra(java.lang.String name,
android.os.Bundle value)
putExtra in class android.content.Intent@NonNull
public android.content.Intent putIntegerArrayListExtra(java.lang.String name,
java.util.ArrayList<java.lang.Integer> value)
putIntegerArrayListExtra in class android.content.Intent@NonNull
public android.content.Intent putParcelableArrayListExtra(java.lang.String name,
java.util.ArrayList<? extends android.os.Parcelable> value)
putParcelableArrayListExtra in class android.content.Intent@NonNull
public android.content.Intent putStringArrayListExtra(java.lang.String name,
java.util.ArrayList<java.lang.String> value)
putStringArrayListExtra in class android.content.Intent@NonNull
public android.content.Intent putCharSequenceArrayListExtra(java.lang.String name,
java.util.ArrayList<java.lang.CharSequence> value)
putCharSequenceArrayListExtra in class android.content.Intent