类android.app.Presentation源码实例Demo

下面列出了怎么用android.app.Presentation的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: Reader   文件: PdfMainPresenter.java
@Override
public Presentation initPresentation() {
    DisplayManager displayManager = (DisplayManager) mContext.getSystemService(Context.DISPLAY_SERVICE);
    Display[] presentationDisplays = displayManager
            .getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION);
    if (presentationDisplays.length > 0) {
        Display presentationDisplay = presentationDisplays[0];
        mPresentation = new PdfPresentation(mContext, presentationDisplay);
        mPresentation.getWindow().setType(
                WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);

        SystemPropertyUtils.setSystemProperty(mContext, "sys.eink.Appmode", "13");
        mPresentation.show();
        return mPresentation;
    }
    return null;
}
 
源代码2 项目: Reader   文件: IBaseDocumentPresenter.java
Presentation initPresentation(); 
 类所在包
 类方法
 同包方法