newsmemory-ios-sdk/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSEnums.h

176 lines
6.8 KiB
C

typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) {
RNSScreenStackPresentationPush,
RNSScreenStackPresentationModal,
RNSScreenStackPresentationTransparentModal,
RNSScreenStackPresentationContainedModal,
RNSScreenStackPresentationContainedTransparentModal,
RNSScreenStackPresentationFullScreenModal,
RNSScreenStackPresentationFormSheet,
RNSScreenStackPresentationPageSheet,
};
typedef NS_ENUM(NSInteger, RNSScreenStackAnimation) {
RNSScreenStackAnimationDefault,
RNSScreenStackAnimationNone,
RNSScreenStackAnimationFade,
RNSScreenStackAnimationFadeFromBottom,
RNSScreenStackAnimationFlip,
RNSScreenStackAnimationSlideFromBottom,
RNSScreenStackAnimationSimplePush,
RNSScreenStackAnimationSlideFromLeft,
};
typedef NS_ENUM(NSInteger, RNSScreenReplaceAnimation) {
RNSScreenReplaceAnimationPop,
RNSScreenReplaceAnimationPush,
};
typedef NS_ENUM(NSInteger, RNSScreenSwipeDirection) {
RNSScreenSwipeDirectionHorizontal,
RNSScreenSwipeDirectionVertical,
};
typedef NS_ENUM(NSInteger, RNSActivityState) {
RNSActivityStateUndefined = -1,
RNSActivityStateInactive = 0,
RNSActivityStateTransitioningOrBelowTop = 1,
RNSActivityStateOnTop = 2
};
typedef NS_ENUM(NSInteger, RNSStatusBarStyle) {
RNSStatusBarStyleAuto,
RNSStatusBarStyleInverted,
RNSStatusBarStyleLight,
RNSStatusBarStyleDark,
};
typedef NS_ENUM(NSInteger, RNSWindowTrait) {
RNSWindowTraitStyle,
RNSWindowTraitAnimation,
RNSWindowTraitHidden,
RNSWindowTraitOrientation,
RNSWindowTraitHomeIndicatorHidden,
};
typedef NS_ENUM(NSInteger, RNSScreenStackHeaderSubviewType) {
RNSScreenStackHeaderSubviewTypeBackButton,
RNSScreenStackHeaderSubviewTypeLeft,
RNSScreenStackHeaderSubviewTypeRight,
RNSScreenStackHeaderSubviewTypeTitle,
RNSScreenStackHeaderSubviewTypeCenter,
RNSScreenStackHeaderSubviewTypeSearchBar,
};
typedef NS_ENUM(NSInteger, RNSScreenDetentType) {
RNSScreenDetentTypeMedium,
RNSScreenDetentTypeLarge,
RNSScreenDetentTypeAll,
};
typedef NS_ENUM(NSInteger, RNSSearchBarPlacement) {
RNSSearchBarPlacementAutomatic,
RNSSearchBarPlacementInline,
RNSSearchBarPlacementStacked,
RNSSearchBarPlacementIntegrated,
RNSSearchBarPlacementIntegratedButton,
RNSSearchBarPlacementIntegratedCentered,
};
typedef NS_ENUM(NSInteger, RNSSplitViewScreenColumnType) {
RNSSplitViewScreenColumnTypeColumn,
RNSSplitViewScreenColumnTypeInspector,
};
// Redefinition of UIBlurEffectStyle. We need to represent additional cases of `None` and `SystemDefault`.
typedef NS_ENUM(NSInteger, RNSBlurEffectStyle) {
/// Default blur effect should be used
RNSBlurEffectStyleSystemDefault = -2,
/// No blur effect should be visible
RNSBlurEffectStyleNone = -1,
RNSBlurEffectStyleExtraLight = UIBlurEffectStyleExtraLight,
RNSBlurEffectStyleLight = UIBlurEffectStyleLight,
RNSBlurEffectStyleDark = UIBlurEffectStyleDark,
// TODO: Add support for this variant on tvOS
// RNSBlurEffectStyleExtraDark = UIBlurEffectStyleExtraDark API_AVAILABLE(tvos(10.0)) API_UNAVAILABLE(ios)
// API_UNAVAILABLE(watchos),
RNSBlurEffectStyleRegular API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos) = UIBlurEffectStyleRegular,
RNSBlurEffectStyleProminent API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos) = UIBlurEffectStyleProminent,
RNSBlurEffectStyleSystemUltraThinMaterial API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemUltraThinMaterial,
RNSBlurEffectStyleSystemThinMaterial API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemThinMaterial,
RNSBlurEffectStyleSystemMaterial API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemMaterial,
RNSBlurEffectStyleSystemThickMaterial API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemThickMaterial,
RNSBlurEffectStyleSystemChromeMaterial API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemChromeMaterial,
RNSBlurEffectStyleSystemUltraThinMaterialLight API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemUltraThinMaterialLight,
RNSBlurEffectStyleSystemThinMaterialLight API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemThinMaterialLight,
RNSBlurEffectStyleSystemMaterialLight API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemMaterialLight,
RNSBlurEffectStyleSystemThickMaterialLight API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemThickMaterialLight,
RNSBlurEffectStyleSystemChromeMaterialLight API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemChromeMaterialLight,
RNSBlurEffectStyleSystemUltraThinMaterialDark API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemUltraThinMaterialDark,
RNSBlurEffectStyleSystemThinMaterialDark API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemThinMaterialDark,
RNSBlurEffectStyleSystemMaterialDark API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemMaterialDark,
RNSBlurEffectStyleSystemThickMaterialDark API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemThickMaterialDark,
RNSBlurEffectStyleSystemChromeMaterialDark API_AVAILABLE(ios(13.0))
API_UNAVAILABLE(watchos, tvos) = UIBlurEffectStyleSystemChromeMaterialDark
} API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos);
typedef NS_ENUM(NSInteger, RNSBottomTabsIconType) {
RNSBottomTabsIconTypeImage,
RNSBottomTabsIconTypeTemplate,
RNSBottomTabsIconTypeSfSymbol,
};
#if !RCT_NEW_ARCH_ENABLED
typedef NS_ENUM(NSInteger, RNSTabBarMinimizeBehavior) {
RNSTabBarMinimizeBehaviorAutomatic,
RNSTabBarMinimizeBehaviorNever,
RNSTabBarMinimizeBehaviorOnScrollDown,
RNSTabBarMinimizeBehaviorOnScrollUp,
};
#endif
// TODO: investigate objc - swift interop and deduplicate this code
// This enum needs to be compatible with the RNSOrientationSwift enum.
typedef NS_ENUM(NSInteger, RNSOrientation) {
RNSOrientationInherit,
RNSOrientationAll,
RNSOrientationAllButUpsideDown,
RNSOrientationPortrait,
RNSOrientationPortraitUp,
RNSOrientationPortraitDown,
RNSOrientationLandscape,
RNSOrientationLandscapeLeft,
RNSOrientationLandscapeRight,
};
typedef NS_ENUM(NSInteger, RNSBottomTabsScreenSystemItem) {
RNSBottomTabsScreenSystemItemNone,
RNSBottomTabsScreenSystemItemBookmarks,
RNSBottomTabsScreenSystemItemContacts,
RNSBottomTabsScreenSystemItemDownloads,
RNSBottomTabsScreenSystemItemFavorites,
RNSBottomTabsScreenSystemItemFeatured,
RNSBottomTabsScreenSystemItemHistory,
RNSBottomTabsScreenSystemItemMore,
RNSBottomTabsScreenSystemItemMostRecent,
RNSBottomTabsScreenSystemItemMostViewed,
RNSBottomTabsScreenSystemItemRecents,
RNSBottomTabsScreenSystemItemSearch,
RNSBottomTabsScreenSystemItemTopRated
};