public class ActivityHelper
extends java.lang.Object
构造器和说明 |
---|
ActivityHelper() |
限定符和类型 | 方法和说明 |
---|---|
static TuSdkIntent |
buildModalActivityIntent(android.app.Activity activity,
java.lang.Class<?> activityClazz,
androidx.fragment.app.Fragment fragment,
ActivityAnimType presentAnim,
ActivityAnimType dismissAnim,
boolean wantFullScreen,
boolean needFilp)
创建启动新的Activity参数
|
static void |
dismissActivity(android.app.Activity activity)
收回控制器
|
static void |
dismissActivityWithAnim(android.app.Activity activity,
ActivityAnimType animType)
使用动画收回控制器
|
static void |
presentActivity(android.app.Activity activity,
java.lang.Class<?> activityClazz,
ActivityAnimType animType,
boolean isDestory)
开启新的Activity
|
static void |
presentActivity(android.app.Activity activity,
java.lang.Class<?> activityClazz,
ActivityAnimType animType,
boolean wantFullScreen,
boolean needFilp,
boolean isDestory)
开启新的Activity
|
static void |
presentActivity(android.app.Activity activity,
java.lang.Class<?> activityClazz,
androidx.fragment.app.Fragment fragment,
ActivityAnimType presentAnim,
ActivityAnimType dismissAnim,
boolean wantFullScreen,
boolean needFilp,
boolean isDestory)
启动新的Activity
|
static void |
presentActivity(android.app.Activity activity,
TuSdkIntent intent,
ActivityAnimType animType,
boolean isDestory)
开启新的Activity
|
static void |
presentModalNavigationActivity(android.app.Activity activity,
java.lang.Class<?> activityClazz,
java.lang.Class<?> fragmentClazz,
ActivityAnimType presentAnim,
ActivityAnimType dismissAnim,
boolean wantFullScreen)
启动新的Activity
|
static void |
presentModalNavigationActivity(android.app.Activity activity,
java.lang.Class<?> activityClazz,
androidx.fragment.app.Fragment fragment,
ActivityAnimType presentAnim,
ActivityAnimType dismissAnim,
boolean wantFullScreen)
启动新的Activity
|
static void |
presentModalNavigationActivity(android.app.Activity activity,
java.lang.Class<?> activityClazz,
androidx.fragment.app.Fragment fragment,
ActivityAnimType presentAnim,
ActivityAnimType dismissAnim,
boolean wantFullScreen,
boolean isDestory)
启动新的Activity
|
public static void dismissActivity(android.app.Activity activity)
activity
- public static void dismissActivityWithAnim(android.app.Activity activity, ActivityAnimType animType)
activity
- animType
- public static TuSdkIntent buildModalActivityIntent(android.app.Activity activity, java.lang.Class<?> activityClazz, androidx.fragment.app.Fragment fragment, ActivityAnimType presentAnim, ActivityAnimType dismissAnim, boolean wantFullScreen, boolean needFilp)
activity
- activityClazz
- 新Activity类对象fragment
- 加载的fragment实例presentAnim
- 弹出时动画 (解决老机型不显示动画问题)dismissAnim
- 退出时动画wantFullScreen
- 是否需要全屏needFilp
- 是否需要翻转动画public static void presentActivity(android.app.Activity activity, TuSdkIntent intent, ActivityAnimType animType, boolean isDestory)
activity
- intent
- 开启参数animType
- 切换动画isDestory
- 是否销毁当前Activitypublic static void presentActivity(android.app.Activity activity, java.lang.Class<?> activityClazz, ActivityAnimType animType, boolean isDestory)
activity
- activityClazz
- 开启对象animType
- 动画isDestory
- 是否销毁自己public static void presentActivity(android.app.Activity activity, java.lang.Class<?> activityClazz, ActivityAnimType animType, boolean wantFullScreen, boolean needFilp, boolean isDestory)
activity
- activityClazz
- 开启对象animType
- 动画wantFullScreen
- 是否需要全屏needFilp
- 是否需要翻转动画isDestory
- 是否销毁自己public static void presentActivity(android.app.Activity activity, java.lang.Class<?> activityClazz, androidx.fragment.app.Fragment fragment, ActivityAnimType presentAnim, ActivityAnimType dismissAnim, boolean wantFullScreen, boolean needFilp, boolean isDestory)
activity
- activityClazz
- 新Activity类对象fragment
- 加载的fragment实例presentAnim
- 弹出时动画dismissAnim
- 退出时动画wantFullScreen
- 是否需要全屏needFilp
- 是否需要翻转动画isDestory
- 是否销毁自己public static void presentModalNavigationActivity(android.app.Activity activity, java.lang.Class<?> activityClazz, androidx.fragment.app.Fragment fragment, ActivityAnimType presentAnim, ActivityAnimType dismissAnim, boolean wantFullScreen, boolean isDestory)
activity
- activityClazz
- 新Activity类对象fragment
- 加载的fragment实例presentAnim
- 弹出时动画dismissAnim
- 退出时动画wantFullScreen
- 是否需要全屏isDestory
- 是否销毁自己public static void presentModalNavigationActivity(android.app.Activity activity, java.lang.Class<?> activityClazz, androidx.fragment.app.Fragment fragment, ActivityAnimType presentAnim, ActivityAnimType dismissAnim, boolean wantFullScreen)
activity
- activityClazz
- 新Activity类对象fragment
- 加载的fragment实例presentAnim
- 弹出时动画dismissAnim
- 退出时动画wantFullScreen
- 是否需要全屏public static void presentModalNavigationActivity(android.app.Activity activity, java.lang.Class<?> activityClazz, java.lang.Class<?> fragmentClazz, ActivityAnimType presentAnim, ActivityAnimType dismissAnim, boolean wantFullScreen)
activity
- activityClazz
- 新Activity类对象fragmentClazz
- 加载的fragment类对象presentAnim
- 弹出时动画dismissAnim
- 退出时动画wantFullScreen
- 是否需要全屏