Modifier and Type | Method and Description |
---|---|
Intent |
build()
Build the intent
|
Intents.PhotoViewIntentBuilder |
setActionBarHiddenInitially(boolean actionBarHiddenInitially) |
Intents.PhotoViewIntentBuilder |
setContentDescription(String contentDescription)
Sets the content Description for the photo
|
Intents.PhotoViewIntentBuilder |
setDisplayThumbsFullScreen(boolean displayFullScreenThumbs) |
Intents.PhotoViewIntentBuilder |
setEnableTimerLightsOut(boolean enable)
Sets auto lights out
|
Intents.PhotoViewIntentBuilder |
setInitialPhotoUri(String initialPhotoUri)
Sets the initial photo URI
|
Intents.PhotoViewIntentBuilder |
setMaxInitialScale(float maxScale)
Sets the maximum scale which an image is initially displayed at
|
Intents.PhotoViewIntentBuilder |
setPhotoIndex(Integer photoIndex)
Sets the photo index
|
Intents.PhotoViewIntentBuilder |
setPhotosUri(String photosUri)
Sets the photos URI
|
Intents.PhotoViewIntentBuilder |
setProjection(String[] projection)
Sets the query projection
|
Intents.PhotoViewIntentBuilder |
setResolvedPhotoUri(String resolvedPhotoUri)
Sets the resolved photo URI.
|
Intents.PhotoViewIntentBuilder |
setScaleAnimation(int startX,
int startY,
int startWidth,
int startHeight)
Enable a scale animation that animates the initial photo URI passed in using
setInitialPhotoUri(java.lang.String) . |
Intents.PhotoViewIntentBuilder |
setThumbnailUri(String thumbnailUri)
Sets the URI for a thumbnail preview of the photo.
|
Intents.PhotoViewIntentBuilder |
watchNetworkConnectivityChanges()
Enable watching the network for connectivity changes.
|
public Intents.PhotoViewIntentBuilder setEnableTimerLightsOut(boolean enable)
public Intents.PhotoViewIntentBuilder setPhotoIndex(Integer photoIndex)
public Intents.PhotoViewIntentBuilder setInitialPhotoUri(String initialPhotoUri)
public Intents.PhotoViewIntentBuilder setPhotosUri(String photosUri)
public Intents.PhotoViewIntentBuilder setProjection(String[] projection)
public Intents.PhotoViewIntentBuilder setResolvedPhotoUri(String resolvedPhotoUri)
PhotoViewActivity
points directly
to a single image and does not need to be resolved via a query
to the ContentProvider
. If this value is set, it supersedes
setPhotosUri(String)
.public Intents.PhotoViewIntentBuilder setThumbnailUri(String thumbnailUri)
public Intents.PhotoViewIntentBuilder setContentDescription(String contentDescription)
public Intents.PhotoViewIntentBuilder setMaxInitialScale(float maxScale)
public Intents.PhotoViewIntentBuilder watchNetworkConnectivityChanges()
public Intents.PhotoViewIntentBuilder setScaleAnimation(int startX, int startY, int startWidth, int startHeight)
setInitialPhotoUri(java.lang.String)
.
Note: To avoid janky transitions, particularly when exiting the photoviewer, ensure the
following system UI flags are set on the root view of the relying app's activity
(via @{link View.setSystemUiVisibility(int)}):
View.SYSTEM_UI_FLAG_VISIBLE | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
As well, client should ensure android:fitsSystemWindows
is set on the root
content view.public Intents.PhotoViewIntentBuilder setActionBarHiddenInitially(boolean actionBarHiddenInitially)
public Intents.PhotoViewIntentBuilder setDisplayThumbsFullScreen(boolean displayFullScreenThumbs)
public Intent build()