MCQs > Website Designing & Development > Ionic Framework >

For the given code below how can you detect the user’s platform? import { Platform } from 'ionic-angular'; @Component({...}) export MyPage { constructor(platform: Platform) { this.platform = platform; // TODO : check if the device is iOS }

Ionic Framework MCQs

For the given code below how can you detect the user’s platform? import { Platform } from 'ionic-angular'; @Component({...}) export MyPage { constructor(platform: Platform) { this.platform = platform; // TODO : check if the device is iOS }

Answer

Correct Answer: if (this.platform.is('ios')) { .. }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ionic Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ionic Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it