Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions CodenameOne/src/com/codename1/system/Lifecycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,19 @@ public void stop() {
/// Callback when the app is destroyed
public void destroy() {
}

/// The current form within the application lifecycle which possibly differs from the one in the implementation

/// Returns the form currently stored by this `Lifecycle` instance for
/// application resume handling.
///
/// In most application code, use `CN.getCurrentForm()` instead, as it returns
/// the form that is actually displayed on the screen. This method is only useful
/// when subclassing `Lifecycle` and you need to inspect or customize the form
/// remembered by `stop()` and restored by `start()`, which may differ from the
/// form currently displayed by the Codename One implementation.
///
/// #### Returns
///
/// the form stored in this lifecycle, or `null` if no form has been stored
protected Form getCurrentForm() {
return current;
}
Expand Down