a zip code crypto-currency system good for red ONLY

slides.d.ts 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. import { ElementRef, EventEmitter, NgZone, Renderer } from '@angular/core';
  2. import { Config } from '../../config/config';
  3. import { Ion } from '../ion';
  4. import { Platform } from '../../platform/platform';
  5. import { SlideContainer, SlideElement, SlideTouchEvents, SlideTouches, SlideZoom } from './swiper/swiper-interfaces';
  6. import { ViewController } from '../../navigation/view-controller';
  7. /**
  8. * @name Slides
  9. * @description
  10. * The Slides component is a multi-section container. Each section can be swiped
  11. * or dragged between. It contains any number of [Slide](../Slide) components.
  12. *
  13. *
  14. * ### Creating
  15. * You should use a template to create slides and listen to slide events. The template
  16. * should contain the slide container, an `<ion-slides>` element, and any number of
  17. * [Slide](../Slide) components, written as `<ion-slide>`. Basic configuration
  18. * values can be set as input properties, which are listed below. Slides events
  19. * can also be listened to such as the slide changing by placing the event on the
  20. * `<ion-slides>` element. See [Usage](#usage) below for more information.
  21. *
  22. *
  23. * ### Navigating
  24. * After creating and configuring the slides, you can navigate between them
  25. * by swiping or calling methods on the `Slides` instance. You can call `slideTo()` to
  26. * navigate to a specific slide, or `slideNext()` to change to the slide that follows
  27. * the active slide. All of the [methods](#instance-members) provided by the `Slides`
  28. * instance are listed below. See [Usage](#usage) below for more information on
  29. * navigating between slides.
  30. *
  31. *
  32. * @usage
  33. *
  34. * You can add slides to a `@Component` using the following template:
  35. *
  36. * ```html
  37. * <ion-slides>
  38. * <ion-slide>
  39. * <h1>Slide 1</h1>
  40. * </ion-slide>
  41. * <ion-slide>
  42. * <h1>Slide 2</h1>
  43. * </ion-slide>
  44. * <ion-slide>
  45. * <h1>Slide 3</h1>
  46. * </ion-slide>
  47. * </ion-slides>
  48. * ```
  49. *
  50. * Next, we can use `ViewChild` to assign the Slides instance to
  51. * your `slides` property. Now we can call any of the `Slides`
  52. * [methods](#instance-members), for example we can use the Slide's
  53. * `slideTo()` method in order to navigate to a specific slide on
  54. * a button click. Below we call the `goToSlide()` method and it
  55. * navigates to the 3rd slide:
  56. *
  57. * ```ts
  58. * import { ViewChild } from '@angular/core';
  59. * import { Slides } from 'ionic-angular';
  60. *
  61. * class MyPage {
  62. * @ViewChild(Slides) slides: Slides;
  63. *
  64. * goToSlide() {
  65. * this.slides.slideTo(2, 500);
  66. * }
  67. * }
  68. * ```
  69. *
  70. * We can also add events to listen to on the `<ion-slides>` element.
  71. * Let's add the `ionSlideDidChange` event and call a method when the slide changes:
  72. *
  73. * ```html
  74. * <ion-slides (ionSlideDidChange)="slideChanged()">
  75. * ```
  76. *
  77. * In our class, we add the `slideChanged()` method which gets the active
  78. * index and prints it:
  79. *
  80. * ```ts
  81. * class MyPage {
  82. * ...
  83. *
  84. * slideChanged() {
  85. * let currentIndex = this.slides.getActiveIndex();
  86. * console.log('Current index is', currentIndex);
  87. * }
  88. * }
  89. * ```
  90. *
  91. * ### Zooming
  92. * If your slides contain images, you can enable zooming on them by setting `zoom="true" and
  93. * wrapping each image in a `div` with the class `swiper-zoom-container`. Zoom supports
  94. * `img`, `svg`, `canvas`, and `ion-img`.
  95. *
  96. * ```html
  97. * <ion-slides zoom="true">
  98. * <ion-slide>
  99. * <div class="swiper-zoom-container">
  100. * <img src="assets/img/dog.jpg">
  101. * </div>
  102. * <ion-label>Woof</ion-label>
  103. * </ion-slide>
  104. * <ion-slide>
  105. * <div class="swiper-zoom-container">
  106. * <img src="assets/img/cat.jpg">
  107. * </div>
  108. * <ion-label>Meow</ion-label>
  109. * </ion-slide>
  110. * <ion-slide>
  111. * <div class="swiper-zoom-container">
  112. * <img src="assets/img/fish.jpg">
  113. * </div>
  114. * <ion-label>Just keep swimming</ion-label>
  115. * </ion-slide>
  116. * </ion-slides>
  117. * ```
  118. *
  119. * @advanced
  120. *
  121. * There are several options available to create customized slides. Ionic exposes
  122. * the most commonly used options as [inputs](http://learnangular2.com/inputs/).
  123. * In order to use an option that isn't exposed as an input the following code
  124. * should be used, where `freeMode` is the option to change:
  125. *
  126. * ```ts
  127. * import { ViewChild } from '@angular/core';
  128. * import { Slides } from 'ionic-angular';
  129. * class MyPage {
  130. * @ViewChild(Slides) slides: Slides;
  131. *
  132. * ngAfterViewInit() {
  133. * this.slides.freeMode = true;
  134. * }
  135. * }
  136. *
  137. * ```
  138. *
  139. * To see all of the available options, take a look at the
  140. * [source for slides](https://github.com/ionic-team/ionic/blob/master/src/components/slides/slides.ts).
  141. *
  142. * @demo /docs/demos/src/slides/
  143. * @see {@link /docs/components#slides Slides Component Docs}
  144. *
  145. * Adopted from Swiper.js:
  146. * The most modern mobile touch slider and framework with
  147. * hardware accelerated transitions.
  148. *
  149. * http://www.idangero.us/swiper/
  150. *
  151. * Copyright 2016, Vladimir Kharlampidi
  152. * The iDangero.us
  153. * http://www.idangero.us/
  154. *
  155. * Licensed under MIT
  156. */
  157. export declare class Slides extends Ion {
  158. private _plt;
  159. /**
  160. * @input {number} Delay between transitions (in milliseconds). If this
  161. * parameter is not passed, autoplay is disabled. Default does
  162. * not have a value and does not autoplay.
  163. * Default: `null`.
  164. */
  165. autoplay: any;
  166. private _autoplayMs;
  167. /**
  168. * @input {Slides} Pass another Slides instance or array of Slides instances
  169. * that should be controlled by this Slides instance.
  170. * Default: `null`.
  171. */
  172. control: Slides | Slides[];
  173. private _control;
  174. /**
  175. * @input {string} The animation effect of the slides.
  176. * Possible values are: `slide`, `fade`, `cube`, `coverflow` or `flip`.
  177. * Default: `slide`.
  178. */
  179. effect: string;
  180. private _effectName;
  181. /**
  182. * @input {string} Swipe direction: 'horizontal' or 'vertical'.
  183. * Default: `horizontal`.
  184. */
  185. direction: string;
  186. private _direction;
  187. /**
  188. * @input {number} Index number of initial slide. Default: `0`.
  189. */
  190. initialSlide: any;
  191. private _initialSlide;
  192. /**
  193. * @input {boolean} If true, continuously loop from the last slide to the
  194. * first slide.
  195. */
  196. loop: boolean;
  197. private _isLoop;
  198. /**
  199. * @input {boolean} If true, show the pager.
  200. */
  201. pager: boolean;
  202. private _pager;
  203. /**
  204. * @input {string} If dir attribute is equal to rtl, set interal _rtl to true;
  205. */
  206. dir: string;
  207. /**
  208. * @input {string} Type of pagination. Possible values are:
  209. * `bullets`, `fraction`, `progress`. Default: `bullets`.
  210. * (Note that the pager will not show unless `pager` input
  211. * is set to true).
  212. */
  213. paginationType: string;
  214. private _paginationType;
  215. /** @hidden */
  216. paginationBulletRender: (index?: number, cssClass?: string) => void;
  217. /**
  218. * @input {boolean} If true, allows you to use "parallaxed" elements inside of
  219. * slider.
  220. */
  221. parallax: boolean;
  222. private _isParallax;
  223. /**
  224. * @input {number} Duration of transition between slides
  225. * (in milliseconds). Default: `300`.
  226. */
  227. speed: any;
  228. private _speedMs;
  229. /**
  230. * @input {boolean} If true, enables zooming functionality.
  231. */
  232. zoom: boolean;
  233. private _isZoom;
  234. /**
  235. * @hidden
  236. * Height of container.
  237. */
  238. height: number;
  239. /**
  240. * @hidden
  241. * Width of container.
  242. */
  243. width: number;
  244. /**
  245. * @hidden
  246. * Enabled this option and swiper will be operated as usual except it will
  247. * not move, real translate values on wrapper will not be set. Useful when
  248. * you may need to create custom slide transition.
  249. */
  250. virtualTranslate: boolean;
  251. /**
  252. * @hidden
  253. * Set to true to round values of slides width and height to prevent blurry
  254. * texts on usual resolution screens (if you have such)
  255. */
  256. roundLengths: boolean;
  257. /**
  258. * @input {number} Distance between slides in px. Default: `0`.
  259. */
  260. spaceBetween: any;
  261. private _spaceBetween;
  262. /**
  263. * @input {number} Slides per view. Slides visible at the same time. Default: `1`.
  264. */
  265. slidesPerView: any;
  266. private _slidesPerView;
  267. /**
  268. * @input {boolean} Center a slide in the middle of the screen.
  269. */
  270. centeredSlides: boolean;
  271. private _centeredSlides;
  272. /**
  273. * @hidden
  274. */
  275. slidesPerColumn: number;
  276. /**
  277. * @hidden
  278. */
  279. slidesPerColumnFill: string;
  280. /**
  281. * @hidden
  282. */
  283. slidesPerGroup: number;
  284. /**
  285. * @hidden
  286. */
  287. slidesOffsetBefore: number;
  288. /**
  289. * @hidden
  290. */
  291. slidesOffsetAfter: number;
  292. /**
  293. * @hidden
  294. */
  295. touchEventsTarget: 'container';
  296. /**
  297. * @hidden
  298. */
  299. autoplayDisableOnInteraction: boolean;
  300. /**
  301. * @hidden
  302. */
  303. autoplayStopOnLast: boolean;
  304. /**
  305. * @hidden
  306. */
  307. freeMode: boolean;
  308. /**
  309. * @hidden
  310. */
  311. freeModeMomentum: boolean;
  312. /**
  313. * @hidden
  314. */
  315. freeModeMomentumRatio: number;
  316. /**
  317. * @hidden
  318. */
  319. freeModeMomentumBounce: boolean;
  320. /**
  321. * @hidden
  322. */
  323. freeModeMomentumBounceRatio: number;
  324. /**
  325. * @hidden
  326. */
  327. freeModeMomentumVelocityRatio: number;
  328. /**
  329. * @hidden
  330. */
  331. freeModeSticky: boolean;
  332. /**
  333. * @hidden
  334. */
  335. freeModeMinimumVelocity: number;
  336. /**
  337. * @hidden
  338. */
  339. autoHeight: boolean;
  340. /**
  341. * @hidden
  342. */
  343. setWrapperSize: boolean;
  344. /**
  345. * @hidden
  346. */
  347. zoomMax: number;
  348. /**
  349. * @hidden
  350. */
  351. zoomMin: number;
  352. /**
  353. * @hidden
  354. */
  355. zoomToggle: boolean;
  356. /**
  357. * @hidden
  358. */
  359. touchRatio: number;
  360. /**
  361. * @hidden
  362. */
  363. touchAngle: number;
  364. /**
  365. * @hidden
  366. */
  367. simulateTouch: boolean;
  368. /**
  369. * @hidden
  370. */
  371. shortSwipes: boolean;
  372. /**
  373. * @hidden
  374. */
  375. longSwipes: boolean;
  376. /**
  377. * @hidden
  378. */
  379. longSwipesRatio: number;
  380. /**
  381. * @hidden
  382. */
  383. longSwipesMs: number;
  384. /**
  385. * @hidden
  386. */
  387. followFinger: boolean;
  388. /**
  389. * @hidden
  390. */
  391. onlyExternal: boolean;
  392. /**
  393. * @hidden
  394. */
  395. threshold: number;
  396. /**
  397. * @hidden
  398. */
  399. touchMoveStopPropagation: boolean;
  400. /**
  401. * @hidden
  402. */
  403. touchReleaseOnEdges: boolean;
  404. /**
  405. * @hidden
  406. */
  407. iOSEdgeSwipeDetection: boolean;
  408. /**
  409. * @hidden
  410. */
  411. iOSEdgeSwipeThreshold: number;
  412. /**
  413. * @hidden
  414. */
  415. paginationClickable: boolean;
  416. /**
  417. * @hidden
  418. */
  419. paginationHide: boolean;
  420. /** @hidden */
  421. resistance: boolean;
  422. /** @hidden */
  423. resistanceRatio: number;
  424. /** @hidden */
  425. watchSlidesProgress: boolean;
  426. /** @hidden */
  427. watchSlidesVisibility: boolean;
  428. /**
  429. * @hidden
  430. */
  431. preventClicks: boolean;
  432. /**
  433. * @hidden
  434. */
  435. preventClicksPropagation: boolean;
  436. /**
  437. * @hidden
  438. */
  439. slideToClickedSlide: boolean;
  440. /**
  441. * @hidden
  442. */
  443. loopAdditionalSlides: number;
  444. /**
  445. * @hidden
  446. */
  447. loopedSlides: number;
  448. /**
  449. * @hidden
  450. */
  451. swipeHandler: any;
  452. /**
  453. * @hidden
  454. */
  455. noSwiping: boolean;
  456. /** @hidden */
  457. runCallbacksOnInit: boolean;
  458. controlBy: string;
  459. controlInverse: boolean;
  460. /**
  461. * @hidden
  462. */
  463. keyboardControl: boolean;
  464. /**
  465. * @hidden
  466. */
  467. coverflow: {
  468. rotate: number;
  469. stretch: number;
  470. depth: number;
  471. modifier: number;
  472. slideShadows: boolean;
  473. };
  474. /**
  475. * @hidden
  476. */
  477. flip: {
  478. slideShadows: boolean;
  479. limitRotation: boolean;
  480. };
  481. /**
  482. * @hidden
  483. */
  484. cube: {
  485. slideShadows: boolean;
  486. shadow: boolean;
  487. shadowOffset: number;
  488. shadowScale: number;
  489. };
  490. /**
  491. * @hidden
  492. */
  493. fade: {
  494. crossFade: boolean;
  495. };
  496. /**
  497. * @hidden
  498. */
  499. prevSlideMessage: string;
  500. /**
  501. * @hidden
  502. */
  503. nextSlideMessage: string;
  504. /**
  505. * @hidden
  506. */
  507. firstSlideMessage: string;
  508. /**
  509. * @hidden
  510. */
  511. lastSlideMessage: string;
  512. /**
  513. * @hidden
  514. */
  515. originalEvent: any;
  516. /**
  517. * @output {Slides} Emitted when a slide change starts.
  518. */
  519. ionSlideWillChange: EventEmitter<Slides>;
  520. /**
  521. * @output {Slides} Emitted when a slide change ends.
  522. */
  523. ionSlideDidChange: EventEmitter<Slides>;
  524. /**
  525. * @output {Slides} Emitted when a slide moves.
  526. */
  527. ionSlideDrag: EventEmitter<Slides>;
  528. /**
  529. * @output {Slides} Emitted when slides reaches its beginning (initial position).
  530. */
  531. ionSlideReachStart: EventEmitter<Slides>;
  532. /**
  533. * @output {Slides} Emitted when slides reaches its last slide.
  534. */
  535. ionSlideReachEnd: EventEmitter<Slides>;
  536. /**
  537. * @output {Slides} Emitted when a slide moves.
  538. */
  539. ionSlideAutoplay: EventEmitter<Slides>;
  540. /**
  541. * @output {Slides} Emitted when a autoplay starts.
  542. */
  543. ionSlideAutoplayStart: EventEmitter<Slides>;
  544. /**
  545. * @output {Slides} Emitted when a autoplay stops.
  546. */
  547. ionSlideAutoplayStop: EventEmitter<Slides>;
  548. /**
  549. * @output {Slides} Emitted when a slide change starts with the "forward" direction.
  550. */
  551. ionSlideNextStart: EventEmitter<Slides>;
  552. /**
  553. * @output {Slides} Emitted when a slide change starts with the "backward" direction.
  554. */
  555. ionSlidePrevStart: EventEmitter<Slides>;
  556. /**
  557. * @output {Slides} Emitted when a slide change ends with the "forward" direction.
  558. */
  559. ionSlideNextEnd: EventEmitter<Slides>;
  560. /**
  561. * @output {Slides} Emitted when a slide change ends with the "backward" direction.
  562. */
  563. ionSlidePrevEnd: EventEmitter<Slides>;
  564. /**
  565. * @output {Slides} Emitted when the user taps/clicks on the slide's container.
  566. */
  567. ionSlideTap: EventEmitter<Slides>;
  568. /**
  569. * @output {Slides} Emitted when the user double taps on the slide's container.
  570. */
  571. ionSlideDoubleTap: EventEmitter<Slides>;
  572. /** @hidden */
  573. ionSlideProgress: EventEmitter<number>;
  574. /** @hidden */
  575. ionSlideTransitionStart: EventEmitter<Slides>;
  576. /** @hidden */
  577. ionSlideTransitionEnd: EventEmitter<Slides>;
  578. /** @hidden */
  579. ionSlideTouchStart: EventEmitter<TouchEvent>;
  580. /** @hidden */
  581. ionSlideTouchEnd: EventEmitter<TouchEvent>;
  582. /**
  583. * Private properties only useful to this class.
  584. * ------------------------------------
  585. */
  586. private _init;
  587. private _tmr;
  588. private _unregs;
  589. /**
  590. * Properties that are exposed publically but no docs.
  591. * ------------------------------------
  592. */
  593. /** @hidden */
  594. clickedIndex: number;
  595. /** @hidden */
  596. clickedSlide: SlideElement;
  597. /** @hidden */
  598. container: SlideContainer;
  599. /** @hidden */
  600. id: number;
  601. /** @hidden */
  602. progress: number;
  603. /** @hidden */
  604. realIndex: number;
  605. /** @hidden */
  606. renderedHeight: number;
  607. /** @hidden */
  608. renderedWidth: number;
  609. /** @hidden */
  610. slideId: string;
  611. /** @hidden */
  612. swipeDirection: string;
  613. /** @hidden */
  614. velocity: number;
  615. /**
  616. * Properties which are for internal use only
  617. * and not exposed to the public
  618. * ------------------------------------
  619. */
  620. /** @internal */
  621. _activeIndex: number;
  622. /** @internal */
  623. _allowClick: boolean;
  624. /** @internal */
  625. _allowSwipeToNext: boolean;
  626. /** @internal */
  627. _allowSwipeToPrev: boolean;
  628. /** @internal */
  629. _animating: boolean;
  630. /** @internal */
  631. _autoplaying: boolean;
  632. /** @internal */
  633. _autoplayPaused: boolean;
  634. /** @internal */
  635. _autoplayTimeoutId: number;
  636. /** @internal */
  637. _bullets: HTMLElement[];
  638. /** @internal */
  639. _classNames: string[];
  640. /** @internal */
  641. _isBeginning: boolean;
  642. /** @internal */
  643. _isEnd: boolean;
  644. /** @internal */
  645. _keyboardUnReg: Function;
  646. /** @internal */
  647. _liveRegion: HTMLElement;
  648. /** @internal */
  649. _paginationContainer: HTMLElement;
  650. /** @internal */
  651. _previousIndex: number;
  652. /** @internal */
  653. _renderedSize: number;
  654. /** @internal */
  655. _rtl: boolean;
  656. /** @internal */
  657. _slides: SlideElement[];
  658. /** @internal */
  659. _snapGrid: any;
  660. /** @internal */
  661. _slidesGrid: any;
  662. /** @internal */
  663. _snapIndex: number;
  664. /** @internal */
  665. _slidesSizesGrid: any;
  666. /** @internal */
  667. _spline: any;
  668. /** @internal */
  669. _supportTouch: boolean;
  670. /** @internal */
  671. _supportGestures: boolean;
  672. /** @internal */
  673. _touches: SlideTouches;
  674. /** @internal */
  675. _touchEvents: SlideTouchEvents;
  676. /** @internal */
  677. _touchEventsDesktop: SlideTouchEvents;
  678. /** @internal */
  679. _translate: number;
  680. /** @internal */
  681. _virtualSize: any;
  682. /** @internal */
  683. _wrapper: HTMLElement;
  684. /** @internal */
  685. _zone: NgZone;
  686. /** @internal */
  687. _zoom: SlideZoom;
  688. /** @hidden */
  689. nextButton: HTMLElement;
  690. /** @hidden */
  691. prevButton: HTMLElement;
  692. constructor(config: Config, _plt: Platform, zone: NgZone, viewCtrl: ViewController, elementRef: ElementRef, renderer: Renderer);
  693. private _initSlides();
  694. /**
  695. * @hidden
  696. */
  697. ngAfterContentInit(): void;
  698. /**
  699. * Update the underlying slider implementation. Call this if you've added or removed
  700. * child slides.
  701. */
  702. update(debounce?: number): void;
  703. resize(): void;
  704. /**
  705. * Transition to the specified slide.
  706. *
  707. * @param {number} index The index number of the slide.
  708. * @param {number} [speed] Transition duration (in ms).
  709. * @param {boolean} [runCallbacks] Whether or not to emit the `ionSlideWillChange`/`ionSlideDidChange` events. Default true.
  710. */
  711. slideTo(index: number, speed?: number, runCallbacks?: boolean): void;
  712. /**
  713. * Transition to the next slide.
  714. *
  715. * @param {number} [speed] Transition duration (in ms).
  716. * @param {boolean} [runCallbacks] Whether or not to emit the `ionSlideWillChange`/`ionSlideDidChange` events. Default true.
  717. */
  718. slideNext(speed?: number, runCallbacks?: boolean): void;
  719. /**
  720. * Transition to the previous slide.
  721. *
  722. * @param {number} [speed] Transition duration (in ms).
  723. * @param {boolean} [runCallbacks] Whether or not to emit the `ionSlideWillChange`/`ionSlideDidChange` events. Default true.
  724. */
  725. slidePrev(speed?: number, runCallbacks?: boolean): void;
  726. /**
  727. * Get the index of the active slide.
  728. *
  729. * @returns {number} The index number of the current slide.
  730. */
  731. getActiveIndex(): number;
  732. /**
  733. * Get the index of the previous slide.
  734. *
  735. * @returns {number} The index number of the previous slide.
  736. */
  737. getPreviousIndex(): number;
  738. /**
  739. * Get the total number of slides.
  740. *
  741. * @returns {number} The total number of slides.
  742. */
  743. length(): number;
  744. /**
  745. * Get whether or not the current slide is the last slide.
  746. *
  747. * @returns {boolean} If the slide is the last slide or not.
  748. */
  749. isEnd(): boolean;
  750. /**
  751. * Get whether or not the current slide is the first slide.
  752. *
  753. * @returns {boolean} If the slide is the first slide or not.
  754. */
  755. isBeginning(): boolean;
  756. /**
  757. * Start auto play.
  758. */
  759. startAutoplay(): void;
  760. /**
  761. * Stop auto play.
  762. */
  763. stopAutoplay(): void;
  764. /**
  765. * Lock or unlock the ability to slide to the next slides.
  766. * @param {boolean} shouldLockSwipeToNext If set to true the user will not be able to swipe to the next slide.
  767. * Set to false to unlock this behaviour.
  768. */
  769. lockSwipeToNext(shouldLockSwipeToNext: boolean): void;
  770. /**
  771. * Lock or unlock the ability to slide to the previous slides.
  772. * @param {boolean} shouldLockSwipeToPrev If set to true the user will not be able to swipe to the previous slide.
  773. * Set to false to unlock this behaviour.
  774. */
  775. lockSwipeToPrev(shouldLockSwipeToPrev: boolean): void;
  776. /**
  777. * Lock or unlock the ability to slide to change slides.
  778. * @param {boolean} shouldLockSwipes If set to true user can not swipe in either direction on slide.
  779. * False allows swiping in both directions.
  780. */
  781. lockSwipes(shouldLockSwipes: boolean): void;
  782. /**
  783. * Enable or disable keyboard control.
  784. * @param {boolean} shouldEnableKeyboard If set to true the slider can be controled by a keyboard.
  785. */
  786. enableKeyboardControl(shouldEnableKeyboard: boolean): void;
  787. /**
  788. * @hidden
  789. */
  790. ngOnDestroy(): void;
  791. }