1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.content; 18 19 /** 20 * Constants for {@link Intent#ACTION_QUICK_VIEW}. 21 */ 22 public class QuickViewConstants { 23 QuickViewConstants()24 private QuickViewConstants() {} 25 26 /** 27 * Feature to view a document using system standard viewing mechanism, like 28 * {@link Intent#ACTION_VIEW}. 29 * 30 * @see Intent#EXTRA_QUICK_VIEW_FEATURES 31 * @see Intent#ACTION_QUICK_VIEW 32 */ 33 public static final String FEATURE_VIEW = "android:view"; 34 35 /** 36 * Feature to edit a document using system standard editing mechanism, like 37 * {@link Intent#ACTION_EDIT}. 38 * 39 * @see Intent#EXTRA_QUICK_VIEW_FEATURES 40 * @see Intent#ACTION_QUICK_VIEW 41 */ 42 public static final String FEATURE_EDIT = "android:edit"; 43 44 /** 45 * Feature to delete an individual document. Quick viewer implementations must use 46 * Storage Access Framework to both verify delete permission and to delete content. 47 * 48 * @see android.provider.DocumentsContract.Document#FLAG_SUPPORTS_DELETE 49 * @see android.provider.DocumentsContract#deleteDocument(ContentResolver, android.net.Uri) 50 */ 51 public static final String FEATURE_DELETE = "android:delete"; 52 53 /** 54 * Feature to view a document using system standard sending mechanism, like 55 * {@link Intent#ACTION_SEND}. 56 * 57 * @see Intent#EXTRA_QUICK_VIEW_FEATURES 58 * @see Intent#ACTION_QUICK_VIEW 59 */ 60 public static final String FEATURE_SEND = "android:send"; 61 62 /** 63 * Feature to download a document to the local file system. 64 * 65 * @see Intent#EXTRA_QUICK_VIEW_FEATURES 66 * @see Intent#ACTION_QUICK_VIEW 67 */ 68 public static final String FEATURE_DOWNLOAD = "android:download"; 69 70 /** 71 * Feature to print a document. 72 * 73 * @see Intent#EXTRA_QUICK_VIEW_FEATURES 74 * @see Intent#ACTION_QUICK_VIEW 75 */ 76 public static final String FEATURE_PRINT = "android:print"; 77 } 78