本文整理汇总了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;未经允许,请勿转载。 |
请发表评论