1 /*
2  * Copyright 2024 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 androidx.pdf.content
18 
19 import androidx.annotation.RestrictTo
20 
21 /**
22  * Represents the list of selected content on a particular page of the PDF document. By default, the
23  * selection boundary is represented from left to right. Note: Currently supports text selection
24  * only.
25  *
26  * @param page: The page number of the selection.
27  * @param start: Boundary where the selection starts.
28  * @param stop: Boundary where the selection stops.
29  * @param selectedContents: list of segments of selected text content.
30  */
31 @RestrictTo(RestrictTo.Scope.LIBRARY)
32 public class PageSelection(
33     public val page: Int,
34     public val start: SelectionBoundary,
35     public val stop: SelectionBoundary,
36     public val selectedTextContents: List<PdfPageTextContent>
37 )
38