本文整理汇总了Java中kr.co.namee.permissiongen.PermissionSuccess类的典型用法代码示例。如果您正苦于以下问题:Java PermissionSuccess类的具体用法?Java PermissionSuccess怎么用?Java PermissionSuccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PermissionSuccess类属于kr.co.namee.permissiongen包,在下文中一共展示了PermissionSuccess类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: permissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void permissionSuccess(){
MediaLoader.loadVideos(getActivity(), new OnVideoLoaderCallBack() {
@Override
public void onResultList(List<VideoItem> items) {
Collections.sort(items,new LocalVideoFragment.MCompartor());
VideosInfo videosInfo = new VideosInfo(items);
getUserContentHolder().setOnLocalVideoListener(LocalVideoFragment.this);
setData(videosInfo);
setPageState(BaseState.SUCCESS);
// Intent intent = new Intent(getApplicationContext(),PlayerActivity.class);
// VideoItem item = new VideoItem();
// item.setPath("http://vfx.mtime.cn/Video/2015/03/13/mp4/150313150746828551.mp4");
// intent.putExtra("data",item);
// startActivity(intent);
}
});
}
示例2: permissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void permissionSuccess(){
MediaLoader.loadVideos(getActivity(), new OnVideoLoaderCallBack() {
@Override
public void onResultList(List<VideoItem> items) {
Collections.sort(items,new MCompartor());
VideosInfo videosInfo = new VideosInfo(items);
setData(videosInfo);
setPageState(BaseState.SUCCESS);
}
});
}
示例3: permissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void permissionSuccess(){
MediaLoader.loadVideos(this, new OnVideoLoaderCallBack() {
@Override
public void onResultList(List<VideoItem> items) {
Collections.sort(items,new MCompartor());
getUserContentHolder().updateItems(items);
setPageState(BaseState.SUCCESS);
}
});
}
示例4: permissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void permissionSuccess() {
UIUtils.postTaskDelay(() -> {
recreate();
// Intent intent = getIntent();
// finish();
// startActivity(intent);
}, 500);
// UIUtils.postTaskSafely(() -> recreate());
}
示例5: isEqualRequestCodeFromAnntation
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
public static boolean isEqualRequestCodeFromAnntation(Method m, Class clazz, int requestCode) {
if (clazz.equals(PermissionFail.class)) {
return requestCode == m.getAnnotation(PermissionFail.class).requestCode();
} else if (clazz.equals(PermissionSuccess.class)) {
return requestCode == m.getAnnotation(PermissionSuccess.class).requestCode();
} else {
return false;
}
}
示例6: findMethodPermissionSuccessWithRequestCode
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
public static <A extends Annotation> Method findMethodPermissionSuccessWithRequestCode(Class clazz, Class<A> permissionFailClass, int requestCode) {
for (Method method : clazz.getDeclaredMethods()) {
if (method.isAnnotationPresent(permissionFailClass)) {
if (requestCode == method.getAnnotation(PermissionSuccess.class).requestCode()) {
return method;
}
}
}
return null;
}
示例7: isEqualRequestCodeFromAnntation
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
public static boolean isEqualRequestCodeFromAnntation(Method m, Class clazz, int requestCode){
if(clazz.equals(PermissionFail.class)){
return requestCode == m.getAnnotation(PermissionFail.class).requestCode();
} else if(clazz.equals(PermissionSuccess.class)){
return requestCode == m.getAnnotation(PermissionSuccess.class).requestCode();
} else {
return false;
}
}
示例8: findMethodPermissionSuccessWithRequestCode
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
public static <A extends Annotation> Method findMethodPermissionSuccessWithRequestCode(Class clazz,
Class<A> permissionFailClass, int requestCode) {
for(Method method : clazz.getDeclaredMethods()){
if(method.isAnnotationPresent(permissionFailClass)){
if(requestCode == method.getAnnotation(PermissionSuccess.class).requestCode()){
return method;
}
}
}
return null;
}
示例9: doSomething
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = PERMISSION_WRITE)
public void doSomething() {
UIUtils.toastShort(BaseActivity.this, "权限申请成功");
}
示例10: permissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void permissionSuccess() {
Intent intent = new Intent(getApplicationContext(),HomeActivity.class);
startActivity(intent);
finish();
}
示例11: openGroupSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void openGroupSuccess() {
Toast.makeText(this, "权限开启成功", Toast.LENGTH_SHORT).show();
button.setVisibility(View.VISIBLE);
}
示例12: doSomething
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = SUCCESSCODE)
public void doSomething() {
//申请成功
startTake();
}
示例13: onPermissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void onPermissionSuccess(){
start = System.currentTimeMillis();
recursionLoad();
startLoad();
}
示例14: onPermissionSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void onPermissionSuccess(){
start = System.currentTimeMillis();
startLoad();
}
示例15: openGroupSuccess
import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void openGroupSuccess() {
Toast.makeText(this, "Group Permission Success", Toast.LENGTH_SHORT).show();
startActivity(new Intent(this, ContactActivity.class));
}