Files
comaps/iphone/CoreApi/CoreApi/DeepLink/DeepLinkInAppFeatureHighlightData.mm
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
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
2025-05-08 21:10:51 +07:00

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