blob: ffb131c04bb941c7b58965b99f95102a80669741 [file] [log] [blame]
Garfield Tance1d0e92017-03-23 10:52:48 -07001/*
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
17package android.content;
18
19/**
20 * Constants for {@link Intent#ACTION_QUICK_VIEW}.
21 */
22public class QuickViewConstants {
23
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 /**
Geoffrey Pitschbc02b772017-12-06 11:24:15 -050036 * Feature to edit a document using system standard editing mechanism, like
Garfield Tance1d0e92017-03-23 10:52:48 -070037 * {@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 /**
Geoffrey Pitschbc02b772017-12-06 11:24:15 -050045 * 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 *
Aurimas Liutikas7f695332018-05-31 21:07:32 -070048 * @see android.provider.DocumentsContract.Document#FLAG_SUPPORTS_DELETE
49 * @see android.provider.DocumentsContract#deleteDocument(ContentResolver, android.net.Uri)
Geoffrey Pitschbc02b772017-12-06 11:24:15 -050050 */
51 public static final String FEATURE_DELETE = "android:delete";
52
53 /**
Garfield Tance1d0e92017-03-23 10:52:48 -070054 * 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}