pop

abstract fun pop()

Ends the style or annotation that was added via a push operation before.

This is typically used after manually pushing annotations with StrongBuilder.pushStrong or LinkBuilder.pushLink.

For most use cases, prefer using the withStrong or withLink DSL helpers which automatically manage the annotation stack.


abstract fun pop(index: Int)

Ends the styles or annotation up to and including the StrongBuilder.pushStrong or LinkBuilder.pushLink that returned the given index.

For most use cases, prefer using the withStrong or withLink DSL helpers which automatically manage the annotation stack.

Parameters

index

The index returned by a previous push operation.