# Platform Channels (Flutter) > MethodChannel, EventChannel, native code integration, Android/iOS native APIs, FFI - 20 interview questions - Senior - [Interview Questions: Flutter](https://sharpskill.dev/en/technologies/flutter/interview-questions.md) ## 1. What is a Platform Channel in Flutter? **Answer** A Platform Channel is a bidirectional communication mechanism between Flutter's Dart code and native platform code (Android/iOS). It enables calling native APIs unavailable in Flutter, such as accessing hardware sensors, using native SDKs, or integrating legacy code. Communication uses standardized binary encoding to transmit asynchronous messages between both environments. ## 2. What is the main difference between MethodChannel and EventChannel? **Answer** MethodChannel enables single method calls with a single response (request/response pattern), ideal for operations like getting battery level or executing a native function. EventChannel allows receiving a continuous data stream from native code as a Dart Stream, perfect for recurring events like GPS updates, sensor readings, or system notifications. ## 3. What codec is used by default to serialize data in a MethodChannel? **Answer** StandardMethodCodec is the default codec used by MethodChannel. It uses StandardMessageCodec to encode and decode values exchanged between Dart and native code. This codec supports primitive types (null, bool, int, double, String), lists, and maps. For specific needs, custom codecs can be created or JSONMethodCodec can be used for JSON serialization. ## 17 more questions available - How to define a unique name for a Platform Channel? - On which thread are MethodChannel calls received on the Android native side? Sign up for free: https://sharpskill.dev/en/login ## Other Flutter interview topics - [Dart Basics](https://sharpskill.dev/en/technologies/flutter/interview-questions/dart-basics.md): 25 questions, Junior - [Dart Language Essentials](https://sharpskill.dev/en/technologies/flutter/interview-questions/dart-language-essentials.md): 15 questions, Junior - [Flutter Fundamentals](https://sharpskill.dev/en/technologies/flutter/interview-questions/flutter-fundamentals.md): 18 questions, Junior - [Widget Lifecycle](https://sharpskill.dev/en/technologies/flutter/interview-questions/widget-lifecycle.md): 20 questions, Junior - [Local Storage](https://sharpskill.dev/en/technologies/flutter/interview-questions/local-storage.md): 20 questions, Junior - [Application Lifecycle](https://sharpskill.dev/en/technologies/flutter/interview-questions/app-lifecycle.md): 20 questions, Junior - [Layouts & Constraints](https://sharpskill.dev/en/technologies/flutter/interview-questions/layouts-constraints.md): 24 questions, Mid-Level - [ListView & GridView](https://sharpskill.dev/en/technologies/flutter/interview-questions/listview-gridview.md): 25 questions, Mid-Level - [Navigation & Routing](https://sharpskill.dev/en/technologies/flutter/interview-questions/navigation-routing.md): 22 questions, Mid-Level - [Basic State Management](https://sharpskill.dev/en/technologies/flutter/interview-questions/state-management-basics.md): 22 questions, Mid-Level - [Provider Pattern](https://sharpskill.dev/en/technologies/flutter/interview-questions/provider-pattern.md): 18 questions, Mid-Level - [Networking & HTTP](https://sharpskill.dev/en/technologies/flutter/interview-questions/networking-http.md): 20 questions, Mid-Level - [JSON Serialization](https://sharpskill.dev/en/technologies/flutter/interview-questions/json-serialization.md): 20 questions, Mid-Level - [Local Database](https://sharpskill.dev/en/technologies/flutter/interview-questions/local-database.md): 22 questions, Mid-Level - [Forms & Validation](https://sharpskill.dev/en/technologies/flutter/interview-questions/forms-validation.md): 20 questions, Mid-Level - [Animations](https://sharpskill.dev/en/technologies/flutter/interview-questions/animations.md): 20 questions, Mid-Level - [Firebase Integration](https://sharpskill.dev/en/technologies/flutter/interview-questions/firebase-integration.md): 18 questions, Mid-Level - [Unit Testing](https://sharpskill.dev/en/technologies/flutter/interview-questions/unit-testing.md): 20 questions, Mid-Level - [Widget Testing](https://sharpskill.dev/en/technologies/flutter/interview-questions/widget-testing.md): 18 questions, Mid-Level - [Build & Deployment](https://sharpskill.dev/en/technologies/flutter/interview-questions/build-deployment.md): 16 questions, Mid-Level - [Package Management](https://sharpskill.dev/en/technologies/flutter/interview-questions/package-management.md): 16 questions, Mid-Level - [Memory & Performance](https://sharpskill.dev/en/technologies/flutter/interview-questions/memory-performance.md): 22 questions, Senior - [Streams & RxDart](https://sharpskill.dev/en/technologies/flutter/interview-questions/streams-rxdart.md): 24 questions, Senior - [Advanced State Management](https://sharpskill.dev/en/technologies/flutter/interview-questions/advanced-state-management.md): 26 questions, Senior - [Flutter Design Patterns](https://sharpskill.dev/en/technologies/flutter/interview-questions/flutter-design-patterns.md): 24 questions, Senior - [Performance Optimization](https://sharpskill.dev/en/technologies/flutter/interview-questions/performance-optimization.md): 26 questions, Senior - [Custom Painting](https://sharpskill.dev/en/technologies/flutter/interview-questions/custom-painting.md): 22 questions, Senior - [Flutter Application Architecture](https://sharpskill.dev/en/technologies/flutter/interview-questions/flutter-app-architecture.md): 22 questions, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/technologies/flutter/interview-questions/platform-channels