mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
24 lines
741 B
TypeScript
24 lines
741 B
TypeScript
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from "."
|
|
import { View } from "../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);
|
|
const view = this._android = <android.view.View>args.view;
|
|
return view;
|
|
}
|
|
|
|
get android(): android.view.View {
|
|
return this._android;
|
|
}
|
|
|
|
get _nativeView(): android.view.View {
|
|
return this._android;
|
|
}
|
|
}
|