How To : Using OnCreate
Contents |
[edit] Description
This document describes how to use OnCreate.
[edit] Prerequisites
Bungee's Approach to Constructors
Function
Understanding Function and Field Overrides
Adding a Function or Field Override
OnCreate
[edit] Procedure
To override onCreate in your project:
- Right-click on the class and select Add Override. A dialog box is displayed containing all of the available fields and functions that can be overriden.
- Select onCreate in the left column of the dialog box and click the >> button (alternatively, double click the function in the left column to add it to the right column).
- Click OK to add the function override for onCreate to the class.
- The onCreate function override has a light blue icon instead of a purple icon, indicating this is an override.
- In the Solution Detail, double-click onCreate to open it in the Design Editor.
- Add Bungee Logic statements for the desired functionality.
[edit] Error Handling
[edit] Examples
[edit] Next Steps
Understanding Bungee Logic
Working with Bungee Logic
[edit] Tags
Categories: HOW TO | Override | Function