-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7614353
commit 4b586d5
Showing
8 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare class Common { | ||
constructor(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export class Common { | ||
constructor() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
} | ||
} |