SafariReader Class Reference
| Inherits from | |
| Technology area | Safari Extensions |
| Availability | Available in Safari 5.1 and later. |
Overview
Reader is a Safari feature that allows users to read online articles in a continuous, clutter-free view, with no ads or visual distractions. Reader concatenates multipage articles into a single scrolling pane.
Instances of the SafariReader class represent the Reader view.
Properties
available
A Boolean value that indicates whether the tab can display the Reader view.
readonly attribute boolean available
Discussion
When the Reader view becomes available, a SafariAvailableEvent event is sent. If you need to know when the Reader view becomes available, listen for that event rather than polling this property.
Availability
- Available in Safari 5.1 and later.
tab
The browser tab that contains the Reader view.
readonly attribute SafariBrowserTab tab
Availability
- Available in Safari 5.1 and later.
visible
A Boolean value that indicates whether the Reader view is being displayed.
readonly attribute boolean visible
Availability
- Available in Safari 5.1 and later.
Methods
dispatchMessage
Dispatches a message to the Reader view.
Parameters
- name
The name of the message.
- message
The body of the message. Optional.
enter
Enters the Reader view if it is available; otherwise does nothing.
Availability
- Available in Safari 5.1 and later.
exit
Exits the Reader if it is visible; otherwise does nothing.
Availability
- Available in Safari 5.1 and later.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-07-23)