public class

SlideshowEditor

extends Object
java.lang.Object
   ↳ com.android.mms.ui.SlideshowEditor

Class Overview

An utility to edit contents of a slide.

Summary

Constants
int MAX_SLIDE_NUM
Public Constructors
SlideshowEditor(Context context, SlideshowModel model)
Public Methods
boolean addNewSlide()
Add a new slide to the end of message.
boolean addNewSlide(int position)
Add a new slide at the specified position in the message.
void changeAudio(int position, Uri newAudio)
void changeDuration(int position, int dur)
void changeImage(int position, Uri newImage)
void changeLayout(int layout)
void changeText(int position, String newText)
void changeVideo(int position, Uri newVideo)
RegionModel getImageRegion()
RegionModel getTextRegion()
void moveSlideDown(int position)
void moveSlideUp(int position)
void removeAllSlides()
Remove all slides.
boolean removeAudio(int position)
boolean removeImage(int position)
void removeSlide(int position)
Remove one slide.
boolean removeText(int position)
Remove the text of the specified slide.
boolean removeVideo(int position)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MAX_SLIDE_NUM

Constant Value: 10 (0x0000000a)

Public Constructors

public SlideshowEditor (Context context, SlideshowModel model)

Public Methods

public boolean addNewSlide ()

Add a new slide to the end of message.

Returns
  • true if success, false if reach the max slide number.

public boolean addNewSlide (int position)

Add a new slide at the specified position in the message.

Returns
  • true if success, false if reach the max slide number.
Throws
IndexOutOfBoundsException - if position is out of range (position < 0 || position > size()).

public void changeAudio (int position, Uri newAudio)

Throws
MmsException

public void changeDuration (int position, int dur)

public void changeImage (int position, Uri newImage)

Throws
MmsException

public void changeLayout (int layout)

public void changeText (int position, String newText)

public void changeVideo (int position, Uri newVideo)

Throws
MmsException

public RegionModel getImageRegion ()

public RegionModel getTextRegion ()

public void moveSlideDown (int position)

public void moveSlideUp (int position)

public void removeAllSlides ()

Remove all slides.

public boolean removeAudio (int position)

public boolean removeImage (int position)

public void removeSlide (int position)

Remove one slide.

public boolean removeText (int position)

Remove the text of the specified slide.

Parameters
position index of the slide
Returns
  • true if success, false if no text in the slide.

public boolean removeVideo (int position)