add Appearance Stream Generator
Adds appearance stream generator to the list of global appearance stream generators.
Appearance stream generators in this list are queried for all annotations in the document until one of them returns true
from shouldUseGeneratorForAnnotation. This generator is then used to generate custom appearance stream by calling getDataProviderForAnnotation. If no such generator is found in the list, annotation's generator (set via setAppearanceStreamGenerator is used. Appearance stream generation fallbacks to default rendering if annotation has no appearance stream generator set.
Note: This does not automatically remove existing appearance streams. The appearance stream only gets generated when the annotation has been modified or when calling generateAppearanceStream explicitly.
Parameters
Appearance stream generator.
Adds appearance stream generator to the list of global appearance stream generators.
Appearance stream generators in this list are queried in order until one of them returns true
from shouldUseGeneratorForAnnotation. This generator is then used to generate custom appearance stream for the annotation by calling getDataProviderForAnnotation. If no such generator is found in the list, annotation's generator (set via setAppearanceStreamGenerator is used. Appearance stream generation fallbacks to default rendering if annotation has no appearance stream generator set.
Note: This does not automatically remove existing appearance streams. The appearance stream only gets generated when the annotation has been modified or when calling generateAppearanceStream explicitly.
Parameters
Appearance stream generator.
Adds appearance stream generator to the beginning of the list. It will be used before any registered generator.