@iternio/react-native-auto-play 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/AndroidAutoSession.kt +59 -1
- package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridAutoPlay.kt +19 -0
- package/ios/hybrid/HybridAutoPlay.swift +7 -0
- package/lib/hooks/useVoiceInput.d.ts +8 -0
- package/lib/hooks/useVoiceInput.js +38 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/specs/AutoPlay.nitro.d.ts +8 -1
- package/lib/specs/VoiceInput.nitro.d.ts +8 -0
- package/lib/types/Event.d.ts +4 -0
- package/nitrogen/generated/android/ReactNativeAutoPlayOnLoad.cpp +2 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_Location__std__optional_std__string_.hpp +78 -0
- package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.cpp +20 -0
- package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.hpp +1 -0
- package/nitrogen/generated/android/c++/JLocation.hpp +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Func_void_std__optional_Location__std__optional_std__string_.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridAutoPlaySpec.kt +9 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/Location.kt +41 -0
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.cpp +8 -0
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.hpp +55 -15
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridAutoPlaySpecSwift.hpp +12 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_Location__std__optional_std__string_.swift +54 -0
- package/nitrogen/generated/ios/swift/HybridAutoPlaySpec.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridAutoPlaySpec_cxx.swift +32 -0
- package/nitrogen/generated/ios/swift/Location.swift +46 -0
- package/nitrogen/generated/shared/c++/HybridAutoPlaySpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridAutoPlaySpec.hpp +5 -1
- package/nitrogen/generated/shared/c++/Location.hpp +79 -0
- package/package.json +1 -1
- package/src/hooks/useVoiceInput.ts +54 -0
- package/src/index.ts +1 -0
- package/src/specs/AutoPlay.nitro.ts +17 -1
- package/src/types/Event.ts +4 -0
- package/lib/specs/HybridAndroidAutoTelemetry.nitro.d.ts +0 -15
- package/lib/specs/HybridAutoPlay.nitro.d.ts +0 -64
- package/lib/specs/HybridAutoPlay.nitro.js +0 -1
- package/lib/specs/HybridCarPlayDashboard.nitro.d.ts +0 -22
- package/lib/specs/HybridCarPlayDashboard.nitro.js +0 -1
- package/lib/specs/HybridCluster.nitro.d.ts +0 -19
- package/lib/specs/HybridCluster.nitro.js +0 -1
- package/lib/specs/HybridGridTemplate.nitro.d.ts +0 -14
- package/lib/specs/HybridGridTemplate.nitro.js +0 -1
- package/lib/specs/HybridInformationTemplate.nitro.d.ts +0 -13
- package/lib/specs/HybridInformationTemplate.nitro.js +0 -1
- package/lib/specs/HybridListTemplate.nitro.d.ts +0 -13
- package/lib/specs/HybridListTemplate.nitro.js +0 -1
- package/lib/specs/HybridMapTemplate.nitro.d.ts +0 -25
- package/lib/specs/HybridMapTemplate.nitro.js +0 -1
- package/lib/specs/HybridMessageTemplate.nitro.d.ts +0 -12
- package/lib/specs/HybridMessageTemplate.nitro.js +0 -1
- package/lib/specs/HybridSearchTemplate.nitro.d.ts +0 -13
- package/lib/specs/HybridSearchTemplate.nitro.js +0 -1
- package/lib/types/GestureEvents.d.ts +0 -37
- package/lib/types/GestureEvents.js +0 -1
- /package/lib/specs/{HybridAndroidAutoTelemetry.nitro.js → VoiceInput.nitro.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { NitroGridTemplateConfig } from '../templates/GridTemplate';
|
|
3
|
-
import type { NitroGridButton } from '../utils/NitroGrid';
|
|
4
|
-
import type { NitroTemplateConfig } from './HybridAutoPlay.nitro';
|
|
5
|
-
interface GridTemplateConfig extends NitroTemplateConfig, NitroGridTemplateConfig {
|
|
6
|
-
}
|
|
7
|
-
export interface HybridGridTemplate extends HybridObject<{
|
|
8
|
-
android: 'kotlin';
|
|
9
|
-
ios: 'swift';
|
|
10
|
-
}> {
|
|
11
|
-
createGridTemplate(config: GridTemplateConfig): void;
|
|
12
|
-
updateGridTemplateButtons(templateId: string, buttons: Array<NitroGridButton>): void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { NitroInformationTemplateConfig } from '../templates/InformationTemplate';
|
|
3
|
-
import type { NitroTemplateConfig } from './HybridAutoPlay.nitro';
|
|
4
|
-
interface InformationTemplateConfig extends NitroTemplateConfig, NitroInformationTemplateConfig {
|
|
5
|
-
}
|
|
6
|
-
export interface HybridInformationTemplate extends HybridObject<{
|
|
7
|
-
android: 'kotlin';
|
|
8
|
-
ios: 'swift';
|
|
9
|
-
}> {
|
|
10
|
-
createInformationTemplate(config: InformationTemplateConfig): void;
|
|
11
|
-
updateInformationTemplateSections(templateId: string, section: NitroInformationTemplateConfig['section']): void;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { NitroListTemplateConfig } from '../templates/ListTemplate';
|
|
3
|
-
import type { NitroTemplateConfig } from './HybridAutoPlay.nitro';
|
|
4
|
-
interface ListTemplateConfig extends NitroTemplateConfig, NitroListTemplateConfig {
|
|
5
|
-
}
|
|
6
|
-
export interface HybridListTemplate extends HybridObject<{
|
|
7
|
-
android: 'kotlin';
|
|
8
|
-
ios: 'swift';
|
|
9
|
-
}> {
|
|
10
|
-
createListTemplate(config: ListTemplateConfig): void;
|
|
11
|
-
updateListTemplateSections(templateId: string, sections: NitroListTemplateConfig['sections']): void;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { NavigationAlertCallbacks, NitroMapTemplateConfig, TripSelectorCallback, VisibleTravelEstimate } from '../templates/MapTemplate';
|
|
3
|
-
import type { TripConfig, TripPoint, TripPreviewTextConfiguration, TripsConfig } from '../types/Trip';
|
|
4
|
-
import type { NitroNavigationAlert } from '../utils/NitroAlert';
|
|
5
|
-
import type { NitroManeuver } from '../utils/NitroManeuver';
|
|
6
|
-
import type { NitroMapButton } from '../utils/NitroMapButton';
|
|
7
|
-
import type { NitroTemplateConfig } from './HybridAutoPlay.nitro';
|
|
8
|
-
interface MapTemplateConfig extends NitroTemplateConfig, NitroMapTemplateConfig {
|
|
9
|
-
}
|
|
10
|
-
export interface HybridMapTemplate extends HybridObject<{
|
|
11
|
-
android: 'kotlin';
|
|
12
|
-
ios: 'swift';
|
|
13
|
-
}> {
|
|
14
|
-
createMapTemplate(config: MapTemplateConfig): void;
|
|
15
|
-
showNavigationAlert(templateId: string, alert: NitroNavigationAlert): NavigationAlertCallbacks;
|
|
16
|
-
showTripSelector(templateId: string, trips: Array<TripsConfig>, selectedTripId: string | undefined, textConfig: TripPreviewTextConfiguration, onTripSelected: (tripId: string, routeId: string) => void, onTripStarted: (tripId: string, routeId: string) => void, onBackPressed: () => void, mapButtons: Array<NitroMapButton>): TripSelectorCallback;
|
|
17
|
-
hideTripSelector(templateId: string): void;
|
|
18
|
-
setTemplateMapButtons(templateId: string, buttons?: Array<NitroMapButton>): void;
|
|
19
|
-
updateVisibleTravelEstimate(templateId: string, visibleTravelEstimate: VisibleTravelEstimate): void;
|
|
20
|
-
updateTravelEstimates(templateId: string, steps: Array<TripPoint>): void;
|
|
21
|
-
updateManeuvers(templateId: string, maneuvers: NitroManeuver): void;
|
|
22
|
-
startNavigation(templateId: string, trip: TripConfig): void;
|
|
23
|
-
stopNavigation(templateId: string): void;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { NitroMessageTemplateConfig } from '../templates/MessageTemplate';
|
|
3
|
-
import type { NitroTemplateConfig } from './HybridAutoPlay.nitro';
|
|
4
|
-
interface MessageTemplateConfig extends NitroTemplateConfig, NitroMessageTemplateConfig {
|
|
5
|
-
}
|
|
6
|
-
export interface HybridMessageTemplate extends HybridObject<{
|
|
7
|
-
android: 'kotlin';
|
|
8
|
-
ios: 'swift';
|
|
9
|
-
}> {
|
|
10
|
-
createMessageTemplate(config: MessageTemplateConfig): void;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { NitroSearchTemplateConfig } from '../templates/SearchTemplate';
|
|
3
|
-
import type { NitroTemplateConfig } from './HybridAutoPlay.nitro';
|
|
4
|
-
interface SearchTemplateConfig extends NitroTemplateConfig, NitroSearchTemplateConfig {
|
|
5
|
-
}
|
|
6
|
-
export interface HybridSearchTemplate extends HybridObject<{
|
|
7
|
-
android: 'kotlin';
|
|
8
|
-
ios: 'swift';
|
|
9
|
-
}> {
|
|
10
|
-
createSearchTemplate(config: SearchTemplateConfig): void;
|
|
11
|
-
updateSearchResults(templateId: string, results: NitroSearchTemplateConfig['results']): void;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
type Translation = {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
};
|
|
5
|
-
type Velocity = {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @param translation screen coordinate offset
|
|
11
|
-
* @param velocity only reported on iOS/CarPlay
|
|
12
|
-
*/
|
|
13
|
-
export type PanGestureWithTranslationEventPayload = {
|
|
14
|
-
translation: Translation;
|
|
15
|
-
velocity?: Velocity;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @param x screen coordinate of the pinch center
|
|
19
|
-
* @param y screen coordinate of the pinch center
|
|
20
|
-
* @param scaleFactor value > 0.0 and < 2.0 when 1.0 means no scaling, > 1.0 zoom in and < 1.0 zoom out, value == 2.0 is a double tap
|
|
21
|
-
* @namespace Android
|
|
22
|
-
*/
|
|
23
|
-
export type PinchGestureEventPayload = {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
scaleFactor: number;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @param x screen coordinate of the press event
|
|
30
|
-
* @param y screen coordinate of the press event
|
|
31
|
-
* @namespace Android
|
|
32
|
-
*/
|
|
33
|
-
export type PressEventPayload = {
|
|
34
|
-
x: number;
|
|
35
|
-
y: number;
|
|
36
|
-
};
|
|
37
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|