コード例 #1
0
 @Override
 @Nullable
 public Uri getThumbnailUri() {
   if (hasThumbnail) {
     return PartAuthority.getAttachmentThumbnailUri(attachmentId);
   } else {
     return null;
   }
 }
コード例 #2
0
 @Override
 @Nullable
 public Uri getDataUri() {
   if (hasData) {
     return PartAuthority.getAttachmentDataUri(attachmentId);
   } else {
     return null;
   }
 }
コード例 #3
0
 @Override
 @NonNull
 public Uri getThumbnailUri() {
   return PartAuthority.getAttachmentThumbnailUri(attachmentId);
 }
コード例 #4
0
 @Override
 @NonNull
 public Uri getDataUri() {
   return PartAuthority.getAttachmentDataUri(attachmentId);
 }