mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 18:56:00 -07:00
feat: Android TV support (#503)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7ab8c015b9
commit
c299492d6d
168 changed files with 12019 additions and 3073 deletions
43
pigeons/player_settings_pigeon.dart
Normal file
43
pigeons/player_settings_pigeon.dart
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import 'package:pigeon/pigeon.dart';
|
||||
|
||||
@ConfigurePigeon(
|
||||
PigeonOptions(
|
||||
dartOut: 'lib/src/player_settings_helper.g.dart',
|
||||
dartOptions: DartOptions(),
|
||||
kotlinOut: 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/PlayerSettingsHelper.g.kt',
|
||||
kotlinOptions: KotlinOptions(
|
||||
includeErrorClass: false,
|
||||
),
|
||||
dartPackageName: 'nl_jknaapen_fladder.settings',
|
||||
),
|
||||
)
|
||||
class PlayerSettings {
|
||||
final Map<SegmentType, SegmentSkip> skipTypes;
|
||||
final int skipForward;
|
||||
final int skipBackward;
|
||||
|
||||
const PlayerSettings({
|
||||
required this.skipTypes,
|
||||
required this.skipForward,
|
||||
required this.skipBackward,
|
||||
});
|
||||
}
|
||||
|
||||
enum SegmentType {
|
||||
commercial,
|
||||
preview,
|
||||
recap,
|
||||
intro,
|
||||
outro,
|
||||
}
|
||||
|
||||
enum SegmentSkip {
|
||||
ask,
|
||||
skip,
|
||||
none,
|
||||
}
|
||||
|
||||
@HostApi()
|
||||
abstract class PlayerSettingsPigeon {
|
||||
void sendPlayerSettings(PlayerSettings playerSettings);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue