Class: Sketchup::LoadHandler Abstract
| Relationships | |
| Inherits: | Object |
Overview
Implement the methods described in this class to create a tool. You can not sub-class this class because it is not defined by the API.
The main purpose of the LoadHandler interface is to be used as an optional second parameter of the DefinitionList#load_from_url method.
Its methods that require implementation handle the process of downloading and managing the state of the load operation, including progress updates and error handling.
Instance Attribute Summary
-
#cancelled? ⇒ Boolean
readonly
This method is called when the download is canceled by the user.
Instance Method Summary
-
#onFailure(message) ⇒ Boolean
This method is called when the download unsuccessfully completes.
-
#onPercentChange(percent) ⇒ nil
This method is triggered whenever the percent value updates.
-
#onSuccess ⇒ nil
This method is called when the download successfully completes.
Instance Attribute Details
#cancelled? ⇒ Boolean (readonly)
This method is called when the download is canceled by the user.
Instance Method Details
#onFailure(message) ⇒ Boolean
This method is called when the download unsuccessfully completes
#onPercentChange(percent) ⇒ nil
This method is triggered whenever the percent value updates.
#onSuccess ⇒ nil
This method is called when the download successfully completes