Skip to content

Commit

Permalink
enjoy, world!
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Sep 8, 2016
1 parent 7614353 commit 4b586d5
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 0 deletions.
Binary file added demo/app/res/taptic-engine.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added taptic-6s-plus.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions taptic-engine.android.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Common } from "./taptic-engine.common";
export declare class TapticEngine extends Common {
weakBoom(): Promise<any>;
strongBoom(): Promise<any>;
burst(): Promise<any>;
}
22 changes: 22 additions & 0 deletions taptic-engine.android.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {Common} from "./taptic-engine.common";

export class TapticEngine extends Common {

public weakBoom(): Promise<any> {
return new Promise((resolve, reject) => {
reject();
});
}

public strongBoom(): Promise<any> {
return new Promise((resolve, reject) => {
reject();
});
}

public burst(): Promise<any> {
return new Promise((resolve, reject) => {
reject();
});
}
}
3 changes: 3 additions & 0 deletions taptic-engine.common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare class Common {
constructor();
}
4 changes: 4 additions & 0 deletions taptic-engine.common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export class Common {
constructor() {
}
}
6 changes: 6 additions & 0 deletions taptic-engine.ios.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Common } from "./taptic-engine.common";
export declare class TapticEngine extends Common {
weakBoom(): Promise<any>;
strongBoom(): Promise<any>;
burst(): Promise<any>;
}
25 changes: 25 additions & 0 deletions taptic-engine.ios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {Common} from "./taptic-engine.common";

export class TapticEngine extends Common {

public weakBoom(): Promise<any> {
return new Promise((resolve, reject) => {
AudioServicesPlaySystemSound(1519);
resolve();
});
}

public strongBoom(): Promise<any> {
return new Promise((resolve, reject) => {
AudioServicesPlaySystemSound(1520);
resolve();
});
}

public burst(): Promise<any> {
return new Promise((resolve, reject) => {
AudioServicesPlaySystemSound(1521);
resolve();
});
}
}

0 comments on commit 4b586d5

Please sign in to comment.