mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
22 lines
719 B
TypeScript
22 lines
719 B
TypeScript
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from "ui/placeholder"
|
|
import { View } from "ui/core/view"
|
|
|
|
export class Placeholder extends View implements PlaceholderDefinition {
|
|
public static creatingViewEvent = "creatingView";
|
|
|
|
private _android: android.view.View;
|
|
|
|
public _createNativeView() {
|
|
let args = <CreateViewEventData>{ eventName: Placeholder.creatingViewEvent, object: this, view: undefined, context: this._context };
|
|
this.notify(args);
|
|
this._android = <android.view.View>args.view;
|
|
}
|
|
|
|
get android(): android.view.View {
|
|
return this._android;
|
|
}
|
|
|
|
get _nativeView(): android.view.View {
|
|
return this._android;
|
|
}
|
|
} |