Hierarchy

Properties

decelerationRate: number
scrollEnabled: boolean

If the value of this property is YES , scrolling is enabled, and if it is NO , scrolling is disabled. The default is YES.

Property

= true]

Ios

Since

3.1.3

bounces: boolean

Sets/Gets the bounce effect when scrolling.

Property

Ios

Since

3.2.1

contentInsetAdjustmentBehavior: ContentInsetAdjustment

The behavior for determining the adjusted content offsets.

Property

= UI.iOS.ContentInsetAdjustment.NEVER]

Ios

Since

4.0.0

exclusiveTouch: boolean

Setting this property to TRUE causes the receiver to block the delivery of touch events to other views. The default value of this property is false

Property

= false]

Ios

Since

2.0.10

clipsToBounds: number

A Boolean value that determines whether subviews are confined to the bounds of the view.

Property

= false]

Ios

Since

1.1.15

masksToBounds: boolean

A Boolean value that determines whether subviews are confined to the bounds of the view.

Property

= false]

Deprecated

Use view.maskToBounds instead

Ios

Since

1.1.15

shadowOffset: Point2D

The offset (in points) of the shadow. This will set "masksToBounds" property to false.

Example

view.masksToBounds = false;
view.ios.shadowOffset = {x:10,y:10};
view.ios.shadowRadius = 5;
view.ios.shadowOpacity = 0.5;
view.ios.shadowColor = Color.GRAY;

Property

= {x: 0.0,y: -3.0}]

Property

Property

Ios

Since

2.0.6

shadowRadius: number

The blur radius (in points) used to render the shadow. masksToBounds" property must be false for shadow.

Property

= 3]

Ios

Since

2.0.6

shadowOpacity: number

The value in this property must be in the range 0.0 (transparent) to 1.0 (opaque). "masksToBounds" property must be false for shadow.

Property

= 0]

Ios

Since

2.0.6

shadowColor: IColor

The color of the shadow. "masksToBounds" property must be false for shadow.

Property

= UI.Color.BLACK]

Deprecated

Use UI.View#shadowColor

Ios

Since

2.0.6

viewAppearanceSemanticContentAttribute: SemanticContentAttribute

Changes the direction of unreachable child views of all components. These components are HeaderBar, BottomBar, Material Textbox, Searchview, SwipeView etc.

Property

= UI.View.iOS.SemanticContentAttribute.AUTO]

Ios

Static

Since

3.1.3

performWithoutAnimation: ((functionWithoutAnimation: Function) => void)

Type declaration

    • (functionWithoutAnimation: Function): void
    • Disables a view transition animation.

      Method

      performWithoutAnimation

      Ios

      Since

      4.2.1

      Parameters

      • functionWithoutAnimation: Function

      Returns void

Events

onScrollBeginDragging: ((contentOffset: __SF_NSRect) => void)

Type declaration

    • (contentOffset: __SF_NSRect): void
    • This event is called when the scroll view is about to start scrolling the content.

      Ios

      Since

      3.2.1

      Deprecated

      Example

      import ScrollView from '@smartface/native/ui/scrollview';

      const scrollView = new ScrollView();
      scrollView.on(ScrollView.Events.ScrollBeginDragging, (params) => {
      console.info('onScrollBeginDragging', params);
      });

      Parameters

      • contentOffset: __SF_NSRect

      Returns void

onScrollBeginDecelerating: ((contentOffset: __SF_NSRect) => void)

Type declaration

    • (contentOffset: __SF_NSRect): void
    • This event is called when the scroll view is starting to decelerate the scrolling movement.

      Ios

      Since

      3.2.1

      Deprecated

      Example

      import ScrollView from '@smartface/native/ui/scrollview';

      const scrollView = new ScrollView();
      scrollView.on(ScrollView.Events.ScrollBeginDecelerating, (params) => {
      console.info('onScrollBeginDecelerating', params);
      });

      Parameters

      • contentOffset: __SF_NSRect

      Returns void

onScrollEndDecelerating: ((contentOffset: __SF_NSRect) => void)

Type declaration

    • (contentOffset: __SF_NSRect): void
    • This event is called when the scroll view has ended decelerating the scrolling movement.

      Ios

      Since

      3.2.1

      Deprecated

      Example

      import ScrollView from '@smartface/native/ui/scrollview';

      const scrollView = new ScrollView();
      scrollView.on(ScrollView.Events.ScrollEndDecelerating, (params) => {
      console.info('onScrollEndDecelerating', params);
      });

      Parameters

      • contentOffset: __SF_NSRect

      Returns void

onScrollEndDraggingWillDecelerate: ((contentOffset: __SF_NSRect, decelerate: boolean) => void)

Type declaration

    • (contentOffset: __SF_NSRect, decelerate: boolean): void
    • This event is called when dragging ended in the scroll view.

      Ios

      Since

      3.2.1

      Deprecated

      Example

      import ScrollView from '@smartface/native/ui/scrollview';

      const scrollView = new ScrollView();
      scrollView.on(ScrollView.Events.ScrollEndDraggingWillDecelerate, (params) => {
      console.info('onScrollEndDraggingWillDecelerate', params);
      });

      Parameters

      • contentOffset: __SF_NSRect
      • decelerate: boolean

        onScrollEndDraggingWillDecelerate

      Returns void

onScrollEndDraggingWithVelocityTargetContentOffset: ((contentOffset: __SF_NSRect, velocity: __SF_NSRect, targetContentOffset: Point2D) => void)

Type declaration

    • (contentOffset: __SF_NSRect, velocity: __SF_NSRect, targetContentOffset: Point2D): void
    • This event is called when the user finishes scrolling the content.

      Ios

      Since

      3.2.1

      Deprecated

      Example

      import ScrollView from '@smartface/native/ui/scrollview';

      const scrollView = new ScrollView();
      scrollView.on(ScrollView.Events.ScrollEndDraggingWithVelocityTargetContentOffset, (params) => {
      console.info('onScrollEndDraggingWithVelocityTargetContentOffset', params);
      });

      Parameters

      • contentOffset: __SF_NSRect
      • velocity: __SF_NSRect
      • targetContentOffset: Point2D

      Returns void

Generated using TypeDoc