Skip to content

后台弹窗 #1266

Description

@guoxingchen55

后台弹窗
new XPopup.Builder(getContext())
.enableShowWhenAppBackground(true) //允许在应用后台弹出
.asConfirm("XPopup牛逼", "XPopup支持直接在后台弹出!", new OnConfirmListener(){
@OverRide
public void onConfirm() {
startActivity(new Intent(getContext(), MainActivity.class));
}
}).show();
这种方式如果只有进程没有页面的情况下,如何显示弹窗呢,比如我在application或者service中去弹窗,应该如何做到呢

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions