mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-17 00:14:48 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
27 lines
861 B
Plaintext
27 lines
861 B
Plaintext
#import "DeepLinkInAppFeatureHighlightData.h"
|
|
#import <CoreApi/Framework.h>
|
|
|
|
static inline InAppFeatureHighlightType FeatureTypeFrom(url_scheme::InAppFeatureHighlightRequest::InAppFeatureType type)
|
|
{
|
|
using namespace url_scheme;
|
|
switch (type)
|
|
{
|
|
case InAppFeatureHighlightRequest::InAppFeatureType::None: return InAppFeatureHighlightTypeNone;
|
|
case InAppFeatureHighlightRequest::InAppFeatureType::TrackRecorder: return InAppFeatureHighlightTypeTrackRecorder;
|
|
case InAppFeatureHighlightRequest::InAppFeatureType::iCloud: return InAppFeatureHighlightTypeICloud;
|
|
}
|
|
}
|
|
|
|
@implementation DeepLinkInAppFeatureHighlightData
|
|
|
|
- (instancetype)init:(DeeplinkUrlType)urlType {
|
|
self = [super init];
|
|
if (self) {
|
|
_urlType = urlType;
|
|
_feature = FeatureTypeFrom(GetFramework().GetInAppFeatureHighlightRequest().m_feature);
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|