Class: Sketchup::LoadHandler Abstract
- Inherits:
-
Object
- Object
- Sketchup::LoadHandler
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 Method Summary # collapse
-
#cancelled? ⇒ Boolean
This method is called when the download is canceled by the user.
-
#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 Method Details
↑ #cancelled? ⇒ Boolean
This method is called when the download is canceled by the user.
↑ #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