Loading topic
Future, Stream, and asynchronous callbacks. You should also know the basics of Kotlin or Swift. This chapter explains how values cross the boundary between Dart code and native Android or iOS code.2 min readFuture, Stream, and asynchronous callbacks. It also assumes basic Kotlin or Swift knowledge. You will learn how a channel name connects Dart code to a native handler and where that handler is registered.1 min readFuture, Stream, and basic Kotlin or Swift. A platform channel transfers messages between Dart and native code. A message codec is the serializer that converts an in-memory value into bytes and reconstructs it on the other side.1 min readFuture, and asynchronous programming. You should also understand basic Kotlin or Swift syntax. This chapter focuses on choosing MethodChannel when Dart sends a request and native code returns one result.2 min readMethodChannel.1 min readFuture, asynchronous code, and widget lifecycles. Also assume basic Kotlin or Swift syntax. This chapter focuses on the native side of a MethodChannel: receiving a call, validating its arguments, and returning exactly one result.1 min readFuture, async and await, and basic Kotlin or Swift. This chapter focuses on the result contract between Dart and native code. A result contract defines which values and errors a channel method can return.1 min readFuture and Stream APIs, and basic Android Kotlin or iOS Swift. This chapter focuses on choosing EventChannel when native code produces values over time.1 min readStream, Future, widgets, and dispose. It also assumes that native code has registered an EventChannel with the same name as the Dart channel.1 min readStream, asynchronous callbacks, and Flutter engine registration.1 min readFuture, Stream, and StreamSubscription. It also assumes basic Kotlin or Swift so you can read the native event handler.1 min readFuture, Stream, and asynchronous callbacks. This chapter shows how Android code registers handlers for Flutter platform channels.1 min readFuture, Stream, and asynchronous callbacks. You should also know basic Swift and understand how an iOS Flutter app uses an AppDelegate.1 min readFuture, Stream, asynchronous code, and basic Kotlin or Swift. This chapter focuses on structure. The goal is to keep platform-channel details out of widgets and make the Android and iOS implementations follow the same contract.2 min readFuture, Stream, StatefulWidget, and dispose(). Also assume basic Kotlin or Swift knowledge. This chapter focuses on what happens when a channel crosses threads and when a Flutter engine starts or stops.2 min readFuture, Stream, and basic Flutter testing. This chapter tests the Dart side of a platform channel without starting Android or iOS code.1 min readFuture and Stream, and have basic Kotlin or Swift experience. Platform channels cross an application boundary, so compatibility and security need deliberate design.2 min read