public final class PictureSelector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PictureSelector |
create(android.app.Activity activity)
Start PictureSelector for Activity.
|
static PictureSelector |
create(Fragment fragment)
Start PictureSelector for Fragment.
|
void |
externalPictureVideo(java.lang.String path)
set preview video
|
static java.util.List<LocalMedia> |
obtainMultipleResult(android.content.Intent data) |
static java.util.List<LocalMedia> |
obtainSelectorList(android.os.Bundle bundle) |
PictureSelectionModel |
openCamera(int chooseMode) |
PictureSelectionModel |
openGallery(int chooseMode) |
static android.content.Intent |
putIntentResult(java.util.List<LocalMedia> data) |
static void |
saveSelectorList(android.os.Bundle outState,
java.util.List<LocalMedia> selectedImages) |
public static PictureSelector create(android.app.Activity activity)
activity
- public static PictureSelector create(Fragment fragment)
fragment
- public PictureSelectionModel openGallery(int chooseMode)
chooseMode
- Select the type of picture you want,all or Picture or Video .public PictureSelectionModel openCamera(int chooseMode)
chooseMode
- Select the type of picture you want,Picture or Video.public static java.util.List<LocalMedia> obtainMultipleResult(android.content.Intent data)
data
- public static android.content.Intent putIntentResult(java.util.List<LocalMedia> data)
data
- public static java.util.List<LocalMedia> obtainSelectorList(android.os.Bundle bundle)
bundle
- public static void saveSelectorList(android.os.Bundle outState, java.util.List<LocalMedia> selectedImages)
selectedImages
- public void externalPictureVideo(java.lang.String path)
path
-