@@ -18,14 +18,14 @@ export function PseudoClassHandler(...pseudoClasses: string[]): MethodDecorator;
1818/**
1919 * Specifies the type name for the instances of this View class,
2020 * that is used when matching CSS type selectors.
21- *
21+ *
2222 * Usage:
2323 * ```
2424 * @CSSType ("Button")
2525 * class Button extends View {
2626 * }
2727 * ```
28- *
28+ *
2929 * Internally the decorator set `Button.prototype.cssType = "Button"`.
3030 * @param type The type name, e. g. "Button", "Label", etc.
3131 */
@@ -50,8 +50,8 @@ export type px = number;
5050export type percent = number ;
5151
5252/**
53- * The Point interface describes a two dimensional location.
54- * It has two properties x and y, representing the x and y coordinate of the location.
53+ * The Point interface describes a two dimensional location.
54+ * It has two properties x and y, representing the x and y coordinate of the location.
5555 */
5656export interface Point {
5757 /**
@@ -66,8 +66,8 @@ export interface Point {
6666}
6767
6868/**
69- * The Size interface describes abstract dimensions in two dimensional space.
70- * It has two properties width and height, representing the width and height values of the size.
69+ * The Size interface describes abstract dimensions in two dimensional space.
70+ * It has two properties width and height, representing the width and height values of the size.
7171 */
7272export interface Size {
7373 /**
@@ -99,8 +99,8 @@ export interface ShownModallyData extends EventData {
9999}
100100
101101/**
102- * This class is the base class for all UI components.
103- * A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
102+ * This class is the base class for all UI components.
103+ * A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
104104 */
105105export abstract class View extends ViewBase {
106106 /**
@@ -475,13 +475,13 @@ export abstract class View extends ViewBase {
475475 * [Deprecated. Please use the on() instead.] Adds a gesture observer.
476476 * @param type - Type of the gesture.
477477 * @param callback - A function that will be executed when gesture is received.
478- * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
478+ * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
479479 */
480480 observe ( type : GestureTypes , callback : ( args : GestureEventData ) => void , thisArg ?: any ) ;
481481
482482 /**
483483 * A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
484- * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change") or you can use gesture types.
484+ * @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change") or you can use gesture types.
485485 * @param callback - Callback function which will be executed when event is raised.
486486 * @param thisArg - An optional parameter which will be used as `this` context for callback execution.
487487 */
@@ -527,12 +527,12 @@ export abstract class View extends ViewBase {
527527 modal : View ;
528528
529529 /**
530- * Animates one or more properties of the view based on the supplied options.
530+ * Animates one or more properties of the view based on the supplied options.
531531 */
532532 public animate ( options : AnimationDefinition ) : AnimationPromise ;
533533
534534 /**
535- * Creates an Animation object based on the supplied options.
535+ * Creates an Animation object based on the supplied options.
536536 */
537537 public createAnimation ( options : AnimationDefinition ) : Animation ;
538538
@@ -562,7 +562,7 @@ export abstract class View extends ViewBase {
562562 public getActualSize ( ) : Size ;
563563
564564 /**
565- * Derived classes can override this method to handle Android back button press.
565+ * Derived classes can override this method to handle Android back button press.
566566 */
567567 onBackPressed ( ) : boolean ;
568568
@@ -575,7 +575,7 @@ export abstract class View extends ViewBase {
575575 /**
576576 * @private
577577 * Adds a new values to current css.
578- * @param cssString - A valid css which will be added to current css.
578+ * @param cssString - A valid css which will be added to current css.
579579 */
580580 addCss ( cssString : string ) : void ;
581581
@@ -586,13 +586,20 @@ export abstract class View extends ViewBase {
586586 */
587587 addCssFile ( cssFileName : string ) : void ;
588588
589+ /**
590+ * @private
591+ * Changes the current css to the content of the file.
592+ * @param cssFileName - A valid file name (from the application root) which contains a valid css.
593+ */
594+ changeCssFile ( cssFileName : string ) : void ;
595+
589596 // Lifecycle events
590597 _getNativeViewsCount ( ) : number ;
591598
592599 _eachLayoutView ( callback : ( View ) => void ) : void ;
593-
600+
594601 /**
595- * Iterates over children of type View.
602+ * Iterates over children of type View.
596603 * @param callback Called for each child of type View. Iteration stops if this method returns falsy value.
597604 */
598605 public eachChildView ( callback : ( view : View ) => boolean ) : void ;
@@ -673,17 +680,17 @@ export abstract class View extends ViewBase {
673680 /**
674681 * @private
675682 */
676- _onLivesync ( ) : boolean ;
683+ _onLivesync ( context ?: { type : string , path : string } ) : boolean ;
677684 /**
678685 * @private
679686 */
680687 _getFragmentManager ( ) : any ; /* android.support.v4.app.FragmentManager */
681688
682689 /**
683690 * Updates styleScope or create new styleScope.
684- * @param cssFileName
685- * @param cssString
686- * @param css
691+ * @param cssFileName
692+ * @param cssString
693+ * @param css
687694 */
688695 _updateStyleScope ( cssFileName ?: string , cssString ?: string , css ?: string ) : void ;
689696
@@ -715,7 +722,7 @@ export abstract class View extends ViewBase {
715722}
716723
717724/**
718- * Base class for all UI components that are containers.
725+ * Base class for all UI components that are containers.
719726 */
720727export class ContainerView extends View {
721728 /**
@@ -725,7 +732,7 @@ export class ContainerView extends View {
725732}
726733
727734/**
728- * Base class for all UI components that implement custom layouts.
735+ * Base class for all UI components that implement custom layouts.
729736 */
730737export class CustomLayoutView extends ContainerView {
731738 //@private
0 commit comments