tgui-angular
Version:
🚀 Angular UI library for Telegram Web Apps with modern components and theming support | 💼 Author is open to work opportunities | 📧 Contact: a.blagovestnov@gmail.com | 💬 Telegram: @ablagovestnov
32 lines (31 loc) • 922 B
TypeScript
import * as i0 from "@angular/core";
export type PlatformType = 'base' | 'ios';
export declare class PlatformService {
platform: import("@angular/core").WritableSignal<PlatformType>;
private _isIOSPlatform;
private document;
constructor();
/**
* Set platform manually
*/
setPlatform(platform: PlatformType): void;
/**
* Checks if current platform is iOS
* Uses DOM class to determine platform, caches result for better performance
*/
isIOS(): boolean;
/**
* Detect platform based on user agent
*/
private detectPlatform;
/**
* Apply platform class to DOM
*/
private applyPlatformToDOM;
/**
* Check if the device is iOS based on user agent
*/
private detectIOSFromUserAgent;
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
}