private static void validateVideo(ShareVideo video, Validator validator) {
if (video == null) {
throw new FacebookException("Cannot share a null ShareVideo");
}
Uri localUri = video.getLocalUrl();
if (localUri == null) {
throw new FacebookException("ShareVideo does not have a LocalUrl specified");
}
if (!Utility.isContentUri(localUri) && !Utility.isFileUri(localUri)) {
throw new FacebookException("ShareVideo must reference a video that is on the device");
}
}
ShareContentValidation.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:kognitivo
作者:
评论列表
文章目录