Class PreviewRequest

java.lang.Object
com.amilesend.onedrive.resource.request.PreviewRequest

public class PreviewRequest extends Object
Represents a request to preview an item.

API Documentation.

  • Method Details

    • builder

      public static PreviewRequest.PreviewRequestBuilder builder()
    • getViewer

      public String getViewer()
      The optional preview app to use. Valid values include:
      • null - Default and one will be chosen automatically
      • onedrive
      • office
    • isChromeless

      public boolean isChromeless()
      If true, the embedded view will omit controls.
    • isAllowEdit

      public boolean isAllowEdit()
      If true, the file can be edited from the UI.
    • getPage

      public String getPage()
      Optional page number of the document formatted as a string.
    • getZoom

      public double getZoom()
      Optional zoom level to start at.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object