Application Lifecycle
AppLifecycleState, WidgetsBindingObserver, background/foreground, app termination
20 면접 질문·
Junior
1Which mixin should be used to observe Flutter app lifecycle state changes?
1
Which mixin should be used to observe Flutter app lifecycle state changes?
답변
WidgetsBindingObserver is Flutter's official mixin for observing app lifecycle state changes. It needs to be added to the State class and the observer registered with WidgetsBinding.instance.addObserver in initState, then removed in dispose.
2Which WidgetsBindingObserver method is called when the app lifecycle state changes?
2
Which WidgetsBindingObserver method is called when the app lifecycle state changes?
답변
The didChangeAppLifecycleState method is called whenever the app lifecycle state changes. It receives an AppLifecycleState parameter indicating the new state of the application (resumed, inactive, paused, detached, hidden).
3Which AppLifecycleState indicates the app is visible and responding to user input?
3
Which AppLifecycleState indicates the app is visible and responding to user input?
답변
The resumed state indicates the app is visible, in the foreground, and responding to user input. This is the normal operating state where the user is actively interacting with the application.
4
When does AppLifecycleState.inactive occur on iOS?
5
Which AppLifecycleState indicates the app is no longer visible to the user?
+17 면접 질문
기타 Flutter 면접 주제
Dart Basics
Junior
25개 질문Dart Language Essentials
Junior
15개 질문Flutter Fundamentals
Junior
18개 질문Widget Lifecycle
Junior
20개 질문Local Storage
Junior
20개 질문Layouts & Constraints
Mid-Level
24개 질문ListView & GridView
Mid-Level
25개 질문Navigation & Routing
Mid-Level
22개 질문Basic State Management
Mid-Level
22개 질문Provider Pattern
Mid-Level
18개 질문Networking & HTTP
Mid-Level
20개 질문JSON Serialization
Mid-Level
20개 질문Local Database
Mid-Level
22개 질문Forms & Validation
Mid-Level
20개 질문Animations
Mid-Level
20개 질문Firebase Integration
Mid-Level
18개 질문Unit Testing
Mid-Level
20개 질문Widget Testing
Mid-Level
18개 질문Build & Deployment
Mid-Level
16개 질문Package Management
Mid-Level
16개 질문Memory & Performance
Senior
22개 질문Streams & RxDart
Senior
24개 질문Advanced State Management
Senior
26개 질문Flutter Design Patterns
Senior
24개 질문Performance Optimization
Senior
26개 질문Platform Channels
Senior
20개 질문Custom Painting
Senior
22개 질문Flutter Application Architecture
Senior
22개 질문