• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PermissionSuccess类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中kr.co.namee.permissiongen.PermissionSuccess的典型用法代码示例。如果您正苦于以下问题:Java PermissionSuccess类的具体用法?Java PermissionSuccess怎么用?Java PermissionSuccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PermissionSuccess类属于kr.co.namee.permissiongen包,在下文中一共展示了PermissionSuccess类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
            }
        });
    }
 
开发者ID:jiajunhui,项目名称:PlayerBase,代码行数:20,代码来源:LocalVideoFragment.java


示例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);
        }
    });
}
 
开发者ID:jiajunhui,项目名称:PlayerBase,代码行数:13,代码来源:LocalVideoListFragment.java


示例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);
        }
    });
}
 
开发者ID:jiajunhui,项目名称:PlayerBase,代码行数:12,代码来源:TestListVideoPlayActivity.java


示例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());
    }
 
开发者ID:starryxp,项目名称:LQRWeChat-master,代码行数:11,代码来源:TakePhotoActivity.java


示例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;
    }
}
 
开发者ID:why168,项目名称:AndroidProjects,代码行数:10,代码来源:Utils.java


示例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;
}
 
开发者ID:why168,项目名称:AndroidProjects,代码行数:11,代码来源:Utils.java


示例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;
  }
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:10,代码来源:Utils.java


示例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;
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:12,代码来源:Utils.java


示例9: doSomething

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = PERMISSION_WRITE)
public void doSomething() {
    UIUtils.toastShort(BaseActivity.this, "权限申请成功");
}
 
开发者ID:Pingsh,项目名称:Mix,代码行数:5,代码来源:BaseActivity.java


示例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();
}
 
开发者ID:jiajunhui,项目名称:PlayerBase,代码行数:7,代码来源:SplashActivity.java


示例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);
}
 
开发者ID:why168,项目名称:AndroidHttpUtils,代码行数:6,代码来源:WelcomeActivity.java


示例12: doSomething

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = SUCCESSCODE)
public void doSomething() {
    //申请成功
    startTake();
}
 
开发者ID:wendyltan,项目名称:EasyTodo,代码行数:6,代码来源:EventContentActivity.java


示例13: onPermissionSuccess

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void onPermissionSuccess(){
    start = System.currentTimeMillis();
    recursionLoad();
    startLoad();
}
 
开发者ID:jiajunhui,项目名称:MediaLoader,代码行数:7,代码来源:MainActivity.java


示例14: onPermissionSuccess

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void onPermissionSuccess(){
    start = System.currentTimeMillis();
    startLoad();
}
 
开发者ID:jiajunhui,项目名称:MediaLoader,代码行数:6,代码来源:MainActivity2.java


示例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));
}
 
开发者ID:why168,项目名称:AndroidProjects,代码行数:6,代码来源:PermissionGenActivity.java


示例16: openCameraSuccess

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 200)
public void openCameraSuccess() {
    Toast.makeText(this, "Camera permission Success", Toast.LENGTH_SHORT).show();
}
 
开发者ID:why168,项目名称:AndroidProjects,代码行数:5,代码来源:PermissionGenActivity.java


示例17: openContact

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void openContact(){
  Toast.makeText(getActivity(), "Contact permission is granted", Toast.LENGTH_SHORT).show();
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:5,代码来源:ContactFragment.java


示例18: test

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 100)
public void test(){
  startActivity(new Intent(this, ContactActivity.class));
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:5,代码来源:MainActivity.java


示例19: openCamera

import kr.co.namee.permissiongen.PermissionSuccess; //导入依赖的package包/类
@PermissionSuccess(requestCode = 200)
public void openCamera(){
  Dlog.debug("open camera success");
}
 
开发者ID:lovedise,项目名称:PermissionGen,代码行数:5,代码来源:MainActivity.java



注:本文中的kr.co.namee.permissiongen.PermissionSuccess类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IntCounter类代码示例发布时间:2022-05-22
下一篇:
Java IWorkbenchHelpSystem类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap