Stay organized with collections
Save and categorize content based on your preferences.
PdfAnnotationType
class PdfAnnotationType
This class holds the set of constants representing the types of a PDF annotation.
Summary
Constants |
static Int |
Represents a freetext annotation
|
static Int |
Represents a highlight annotation
|
static Int |
Represents a stamp annotation
|
static Int |
Represents the type of annotation that cannot be determined
|
Constants
FREETEXT
static val FREETEXT: Int
Represents a freetext annotation
Value: 1
HIGHLIGHT
static val HIGHLIGHT: Int
Represents a highlight annotation
Value: 2
STAMP
static val STAMP: Int
Represents a stamp annotation
Value: 3
UNKNOWN
static val UNKNOWN: Int
Represents the type of annotation that cannot be determined
Value: 0
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# PdfAnnotationType\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions)\n\nPdfAnnotationType\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/pdf/component/PdfAnnotationType \"View this page in Java\") \n\n```\nclass PdfAnnotationType\n```\n\n|---|-------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.graphics.pdf.component.PdfAnnotationType](#) |\n\nThis class holds the set of constants representing the types of a PDF annotation.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FREETEXT](#FREETEXT:kotlin.Int) Represents a freetext annotation |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [HIGHLIGHT](#HIGHLIGHT:kotlin.Int) Represents a highlight annotation |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STAMP](#STAMP:kotlin.Int) Represents a stamp annotation |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [UNKNOWN](#UNKNOWN:kotlin.Int) Represents the type of annotation that cannot be determined |\n\nConstants\n---------\n\n### FREETEXT\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val FREETEXT: Int\n```\n\nRepresents a freetext annotation \n\n Value: 1\n\n### HIGHLIGHT\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val HIGHLIGHT: Int\n```\n\nRepresents a highlight annotation \n\n Value: 2\n\n### STAMP\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val STAMP: Int\n```\n\nRepresents a stamp annotation \n\n Value: 3\n\n### UNKNOWN\n\nAdded in [S Extensions 18](https://developer.android.com/sdkExtensions) \n\n```\nstatic val UNKNOWN: Int\n```\n\nRepresents the type of annotation that cannot be determined \n\n Value: 0"]]