Java 类com.facebook.share.internal.MessageDialogFeature 实例源码

项目:kognitivo    文件:MessageDialog.java   
private static DialogFeature getFeature(
        Class<? extends ShareContent> contentType) {
    if (ShareLinkContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.MESSAGE_DIALOG;
    } else if (SharePhotoContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.PHOTOS;
    } else if (ShareVideoContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.VIDEO;
    } else if (ShareOpenGraphContent.class.isAssignableFrom(contentType)) {
        return OpenGraphMessageDialogFeature.OG_MESSAGE_DIALOG;
    }
    return null;
}
项目:Move-Alarm_ORCA    文件:MessageDialog.java   
private static DialogFeature getFeature(
        Class<? extends ShareContent> contentType) {
    if (ShareLinkContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.MESSAGE_DIALOG;
    } else if (SharePhotoContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.PHOTOS;
    } else if (ShareVideoContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.VIDEO;
    } else if (ShareOpenGraphContent.class.isAssignableFrom(contentType)) {
        return OpenGraphMessageDialogFeature.OG_MESSAGE_DIALOG;
    }
    return null;
}
项目:SocioBlood    文件:MessageDialog.java   
private static DialogFeature getFeature(
        Class<? extends ShareContent> contentType) {
    if (ShareLinkContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.MESSAGE_DIALOG;
    } else if (SharePhotoContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.PHOTOS;
    } else if (ShareVideoContent.class.isAssignableFrom(contentType)) {
        return MessageDialogFeature.VIDEO;
    } else if (ShareOpenGraphContent.class.isAssignableFrom(contentType)) {
        return OpenGraphMessageDialogFeature.OG_MESSAGE_DIALOG;
    }
    return null;
}