> Documentation index: https://developer.android.com/reference/llms.txt

# AccessibilityNodeInfoCompat.PublicationInfoCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityNodeInfoCompat.java+class:androidx.core.view.accessibility.AccessibilityNodeInfoCompat.PublicationInfoCompat) Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

*** ** * ** ***


```
@PreviewAccessibilityApi
class AccessibilityNodeInfoCompat.PublicationInfoCompat : AccessibilityNodeInfoCompat.StructuredDataInfoCompat
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.core.view.accessibility.AccessibilityNodeInfoCompat.StructuredDataInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat.md.txt) ||
|   | ↳ | [androidx.core.view.accessibility.AccessibilityNodeInfoCompat.PublicationInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.PublicationInfoCompat.md.txt) |

*** ** * ** ***

Holds information about a node that represents a part of a digital publication, such as a chapter, footnote, or glossary entry.

An accessibility service can use this information to provide a richer experience for users reading digital publications, such as ebooks, articles, and long-form documents. For example, a screen reader could announce when a user enters a chapter or footnote and allow jumping between publication sections.

To add publication information to a node, create an instance of `PublicationInfoCompat` and call `setStructuredDataInfo`.

On all API levels, this information is currently stored in the node's extras, where accessibility services can read it with `getStructuredDataInfo`. See `StructuredDataInfoCompat`.

## Summary

| ### Constants |
|---|---|
| `const String!` | `PUBLICATION_TAG_ABSTRACT = "doc-abstract"` A short summary of the work, or of a section or excerpt of it. |
| `const String!` | `PUBLICATION_TAG_ACKNOWLEDGMENTS = "doc-acknowledgments"` A section that acknowledges contributions to the work. |
| `const String!` | `PUBLICATION_TAG_AFTERWORD = "doc-afterword"` A closing statement, typically about how the work came to be or what followed it. |
| `const String!` | `PUBLICATION_TAG_APPENDIX = "doc-appendix"` Supplemental information placed after the main content. |
| `const String!` | `PUBLICATION_TAG_BACK_LINK = "doc-backlink"` A link back to a related location, such as from a note to where it's referenced. |
| `const String!` | `PUBLICATION_TAG_BIBLIOGRAPHY = "doc-bibliography"` A list of external sources cited in the work. |
| `const String!` | `PUBLICATION_TAG_BIBLIOGRAPHY_REFERENCE = "doc-biblioref"` A reference to a bibliography entry. |
| `const String!` | `PUBLICATION_TAG_CHAPTER = "doc-chapter"` A major thematic section of the work. |
| `const String!` | `PUBLICATION_TAG_COLOPHON = "doc-colophon"` Production notes for the edition, such as the typeface used. |
| `const String!` | `PUBLICATION_TAG_CONCLUSION = "doc-conclusion"` A section that summarizes the work or wraps up its narrative. |
| `const String!` | `PUBLICATION_TAG_COVER = "doc-cover"` A cover image, typically showing the title and author. |
| `const String!` | `PUBLICATION_TAG_CREDIT = "doc-credit"` An acknowledgment of the source of third-party content, such as a photo. |
| `const String!` | `PUBLICATION_TAG_CREDITS = "doc-credits"` A collection of credits. |
| `const String!` | `PUBLICATION_TAG_DEDICATION = "doc-dedication"` An inscription dedicating the work to one or more people. |
| `const String!` | `PUBLICATION_TAG_ENDNOTES = "doc-endnotes"` A collection of notes at the end of the work or of a section. |
| `const String!` | `PUBLICATION_TAG_EPIGRAPH = "doc-epigraph"` A quotation at the start of the work or a section that sets its theme or mood. |
| `const String!` | `PUBLICATION_TAG_EPILOGUE = "doc-epilogue"` A concluding section of narrative that comments on the work's events, typically from a later time. |
| `const String!` | `PUBLICATION_TAG_ERRATA = "doc-errata"` A list of corrections made after publication. |
| `const String!` | `PUBLICATION_TAG_EXAMPLE = "doc-example"` An illustration of a key concept, such as a code listing or case study. |
| `const String!` | `PUBLICATION_TAG_FOOTNOTE = "doc-footnote"` Ancillary information, such as a citation or comment, about a referenced passage. |
| `const String!` | `PUBLICATION_TAG_FOREWORD = "doc-foreword"` An introductory section, typically written by someone other than the author. |
| `const String!` | `PUBLICATION_TAG_GLOSSARY = "doc-glossary"` A list of terms used in the work, with their definitions. |
| `const String!` | `PUBLICATION_TAG_GLOSSARY_REFERENCE = "doc-glossref"` A reference to a glossary definition. |
| `const String!` | `PUBLICATION_TAG_INDEX = "doc-index"` A detailed list of links to the subjects, names and topics in the work. |
| `const String!` | `PUBLICATION_TAG_INTRODUCTION = "doc-introduction"` A section that introduces the scope or nature of the work. |
| `const String!` | `PUBLICATION_TAG_NOTE_REFERENCE = "doc-noteref"` A reference to a footnote or endnote, typically a superscript number or symbol. |
| `const String!` | `PUBLICATION_TAG_NOTICE = "doc-notice"` A warning about the consequences of an action or event. |
| `const String!` | `PUBLICATION_TAG_PAGE_BREAK = "doc-pagebreak"` The point where one page of a paginated edition ends and the next begins. |
| `const String!` | `PUBLICATION_TAG_PAGE_FOOTER = "doc-pagefooter"` Text at the bottom of a page that gives context about the work and the reader's place in it. |
| `const String!` | `PUBLICATION_TAG_PAGE_HEADER = "doc-pageheader"` Text at the top of a page that gives context about the work and the reader's place in it. |
| `const String!` | `PUBLICATION_TAG_PAGE_LIST = "doc-pagelist"` A list of links to the page breaks in the content. |
| `const String!` | `PUBLICATION_TAG_PART = "doc-part"` A major division of the work that groups related sections, such as several chapters. |
| `const String!` | `PUBLICATION_TAG_PREFACE = "doc-preface"` An introductory section, typically written by the author. |
| `const String!` | `PUBLICATION_TAG_PROLOGUE = "doc-prologue"` An introductory section that sets the background, typically as part of the narrative. |
| `const String!` | `PUBLICATION_TAG_PULL_QUOTE = "doc-pullquote"` A quotation from the content, set apart to draw attention to it. |
| `const String!` | `PUBLICATION_TAG_QUESTIONS_AND_ANSWERS = "doc-qna"` Content structured as questions and answers, such as an interview or FAQ. |
| `const String!` | `PUBLICATION_TAG_SUBTITLE = "doc-subtitle"` An explanatory or alternate title for the work or a section. |
| `const String!` | `PUBLICATION_TAG_TABLE_OF_CONTENTS = "doc-toc"` An ordered list of links to the major headings in the content. |
| `const String!` | `PUBLICATION_TAG_TIP = "doc-tip"` Helpful information that clarifies the content. |

| ### Public constructors |
|---|
| `PublicationInfoCompat(tag: String)` Instantiates a new PublicationInfoCompat. |

| ### Public functions |
|---|---|
| `String` | `getTag()` |

### Inherited functions

From [androidx.core.view.accessibility.AccessibilityNodeInfoCompat.StructuredDataInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat.md.txt) `Boolean` `equals(obj: Any?)` `String?` `getAttribute(attributeKey: String)`

Gets the value of an attribute.
`(Mutable)Map<String!, String!>` `getAttributes()`

Returns an unmodifiable map of attributes.
`Int` `hashCode()` `Unit` `putAttribute(attributeKey: String, value: String)`

Adds an attribute.
`Unit` `removeAttribute(attributeKey: String)`

Removes an attribute.
`String` `toString()`

## Constants

### PUBLICATION_TAG_ABSTRACT

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_ABSTRACT = "doc-abstract": String!
```

A short summary of the work, or of a section or excerpt of it.

### PUBLICATION_TAG_ACKNOWLEDGMENTS

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_ACKNOWLEDGMENTS = "doc-acknowledgments": String!
```

A section that acknowledges contributions to the work.

### PUBLICATION_TAG_AFTERWORD

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_AFTERWORD = "doc-afterword": String!
```

A closing statement, typically about how the work came to be or what followed it.

### PUBLICATION_TAG_APPENDIX

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_APPENDIX = "doc-appendix": String!
```

Supplemental information placed after the main content.

### PUBLICATION_TAG_BACK_LINK

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_BACK_LINK = "doc-backlink": String!
```

A link back to a related location, such as from a note to where it's referenced.

### PUBLICATION_TAG_BIBLIOGRAPHY

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_BIBLIOGRAPHY = "doc-bibliography": String!
```

A list of external sources cited in the work.

### PUBLICATION_TAG_BIBLIOGRAPHY_REFERENCE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_BIBLIOGRAPHY_REFERENCE = "doc-biblioref": String!
```

A reference to a bibliography entry.

### PUBLICATION_TAG_CHAPTER

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_CHAPTER = "doc-chapter": String!
```

A major thematic section of the work.

### PUBLICATION_TAG_COLOPHON

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_COLOPHON = "doc-colophon": String!
```

Production notes for the edition, such as the typeface used.

### PUBLICATION_TAG_CONCLUSION

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_CONCLUSION = "doc-conclusion": String!
```

A section that summarizes the work or wraps up its narrative.

### PUBLICATION_TAG_COVER

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_COVER = "doc-cover": String!
```

A cover image, typically showing the title and author.

### PUBLICATION_TAG_CREDIT

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_CREDIT = "doc-credit": String!
```

An acknowledgment of the source of third-party content, such as a photo.

### PUBLICATION_TAG_CREDITS

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_CREDITS = "doc-credits": String!
```

A collection of credits.

### PUBLICATION_TAG_DEDICATION

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_DEDICATION = "doc-dedication": String!
```

An inscription dedicating the work to one or more people.

### PUBLICATION_TAG_ENDNOTES

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_ENDNOTES = "doc-endnotes": String!
```

A collection of notes at the end of the work or of a section.

### PUBLICATION_TAG_EPIGRAPH

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_EPIGRAPH = "doc-epigraph": String!
```

A quotation at the start of the work or a section that sets its theme or mood.

### PUBLICATION_TAG_EPILOGUE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_EPILOGUE = "doc-epilogue": String!
```

A concluding section of narrative that comments on the work's events, typically from a later time.

### PUBLICATION_TAG_ERRATA

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_ERRATA = "doc-errata": String!
```

A list of corrections made after publication.

### PUBLICATION_TAG_EXAMPLE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_EXAMPLE = "doc-example": String!
```

An illustration of a key concept, such as a code listing or case study.

### PUBLICATION_TAG_FOOTNOTE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_FOOTNOTE = "doc-footnote": String!
```

Ancillary information, such as a citation or comment, about a referenced passage.

### PUBLICATION_TAG_FOREWORD

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_FOREWORD = "doc-foreword": String!
```

An introductory section, typically written by someone other than the author.

### PUBLICATION_TAG_GLOSSARY

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_GLOSSARY = "doc-glossary": String!
```

A list of terms used in the work, with their definitions.

### PUBLICATION_TAG_GLOSSARY_REFERENCE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_GLOSSARY_REFERENCE = "doc-glossref": String!
```

A reference to a glossary definition.

### PUBLICATION_TAG_INDEX

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_INDEX = "doc-index": String!
```

A detailed list of links to the subjects, names and topics in the work.

### PUBLICATION_TAG_INTRODUCTION

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_INTRODUCTION = "doc-introduction": String!
```

A section that introduces the scope or nature of the work.

### PUBLICATION_TAG_NOTE_REFERENCE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_NOTE_REFERENCE = "doc-noteref": String!
```

A reference to a footnote or endnote, typically a superscript number or symbol.

### PUBLICATION_TAG_NOTICE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_NOTICE = "doc-notice": String!
```

A warning about the consequences of an action or event.

### PUBLICATION_TAG_PAGE_BREAK

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PAGE_BREAK = "doc-pagebreak": String!
```

The point where one page of a paginated edition ends and the next begins. Its accessible name is normally the number of the page that follows.

### PUBLICATION_TAG_PAGE_FOOTER

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PAGE_FOOTER = "doc-pagefooter": String!
```

Text at the bottom of a page that gives context about the work and the reader's place in it.

### PUBLICATION_TAG_PAGE_HEADER

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PAGE_HEADER = "doc-pageheader": String!
```

Text at the top of a page that gives context about the work and the reader's place in it.

### PUBLICATION_TAG_PAGE_LIST

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PAGE_LIST = "doc-pagelist": String!
```

A list of links to the page breaks in the content.

### PUBLICATION_TAG_PART

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PART = "doc-part": String!
```

A major division of the work that groups related sections, such as several chapters.

### PUBLICATION_TAG_PREFACE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PREFACE = "doc-preface": String!
```

An introductory section, typically written by the author.

### PUBLICATION_TAG_PROLOGUE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PROLOGUE = "doc-prologue": String!
```

An introductory section that sets the background, typically as part of the narrative.

### PUBLICATION_TAG_PULL_QUOTE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_PULL_QUOTE = "doc-pullquote": String!
```

A quotation from the content, set apart to draw attention to it.

### PUBLICATION_TAG_QUESTIONS_AND_ANSWERS

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_QUESTIONS_AND_ANSWERS = "doc-qna": String!
```

Content structured as questions and answers, such as an interview or FAQ.

### PUBLICATION_TAG_SUBTITLE

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_SUBTITLE = "doc-subtitle": String!
```

An explanatory or alternate title for the work or a section.

### PUBLICATION_TAG_TABLE_OF_CONTENTS

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_TABLE_OF_CONTENTS = "doc-toc": String!
```

An ordered list of links to the major headings in the content.

### PUBLICATION_TAG_TIP

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
const val PUBLICATION_TAG_TIP = "doc-tip": String!
```

Helpful information that clarifies the content.

## Public constructors

### PublicationInfoCompat

Added in [1.20.0-alpha01](https://developer.android.com/jetpack/androidx/releases/core.md.txt#1.20.0-alpha01)

```
PublicationInfoCompat(tag: String)
```

Instantiates a new PublicationInfoCompat.

| Parameters |
|---|---|
| `tag: String` | The publication tag for this node. |

| Throws |
|---|---|
| `java.lang.IllegalArgumentException` | if `tag` is empty. |

## Public functions

### getTag

```
fun getTag(): String
```