INNER CODE UNIT · Rust

send_platform_message_response

denialwm/denial · compositor/flutter-engine/src/lib.rs:772

    pub fn send_platform_message_response(
        &self,
        response_handle: usize,
        data: &[u8],
    ) -> Result<(), EngineError> {
        let function = self
            .library
            .table
            .SendPlatformMessageResponse
            .expect("validated Flutter proc table");
        let response_handle = response_handle as *const sys::FlutterPlatformMessageResponseHandle;
        if response_handle.is_null() {
            return Ok(());
        }
        // SAFETY: Flutter supplied this opaque handle in a platform-message
        // callback and owns it until exactly one response is sent.
        check_result("SendPlatformMessageResponse", unsafe {
            function(self.handle, response_handle, data.as_ptr(), data.len())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…