/*
  ==============================================================================

   This file is part of the JUCE framework.
   Copyright (c) Raw Material Software Limited

   JUCE is an open source framework subject to commercial or open source
   licensing.

   By downloading, installing, or using the JUCE framework, or combining the
   JUCE framework with any other source code, object code, content or any other
   copyrightable work, you agree to the terms of the JUCE End User Licence
   Agreement, and all incorporated terms including the JUCE Privacy Policy and
   the JUCE Website Terms of Service, as applicable, which will bind you. If you
   do not agree to the terms of these agreements, we will not license the JUCE
   framework to you, and you must discontinue the installation or download
   process and cease use of the JUCE framework.

   JUCE End User Licence Agreement: https://juce.com/legal/juce-8-licence/
   JUCE Privacy Policy: https://juce.com/juce-privacy-policy
   JUCE Website Terms of Service: https://juce.com/juce-website-terms-of-service/

   Or:

   You may also use this code under the terms of the AGPLv3:
   https://www.gnu.org/licenses/agpl-3.0.en.html

   THE JUCE FRAMEWORK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL
   WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING WARRANTY OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.

  ==============================================================================
*/

namespace juce
{

// This byte-code is generated from native/java/com/rmsl/juce/ComponentPeerView.java with min sdk version 16
// See juce_core/native/java/README.txt on how to generate this byte-code.
const uint8 javaComponentPeerView[]
{
  0x1f, 0x8b, 0x08, 0x08, 0xb5, 0x02, 0xbc, 0x69, 0x00, 0x03, 0x63, 0x6c,
  0x61, 0x73, 0x73, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x78, 0x00, 0xa5, 0x7c,
  0x0b, 0x7c, 0xdc, 0x55, 0x95, 0xff, 0xb9, 0xf3, 0x4c, 0x26, 0x93, 0x64,
  0x32, 0x49, 0x9a, 0xf4, 0x3d, 0x4d, 0xd3, 0x92, 0x42, 0x1e, 0x93, 0x34,
  0x69, 0x92, 0x26, 0x6d, 0x93, 0xa6, 0x69, 0x9b, 0x34, 0x69, 0xd3, 0x66,
  0x9a, 0x3e, 0x52, 0xa0, 0x93, 0x64, 0xda, 0x4c, 0x3b, 0x99, 0x99, 0xcc,
  0x4c, 0x1e, 0x45, 0xe4, 0x5f, 0x9e, 0x05, 0x44, 0x2c, 0x08, 0x5a, 0x14,
  0xa4, 0x20, 0x2f, 0x57, 0xe4, 0x0f, 0x5a, 0x84, 0x45, 0xd6, 0x67, 0x71,
  0x51, 0x51, 0x41, 0x01, 0xab, 0xcb, 0x0a, 0x08, 0x4a, 0x75, 0x59, 0x45,
  0x45, 0xc5, 0xbf, 0xec, 0xb2, 0xdf, 0x73, 0xef, 0x9d, 0xc9, 0x6f, 0x92,
  0x06, 0xf4, 0xbf, 0xcd, 0xe7, 0xfb, 0x3b, 0xe7, 0x9e, 0x73, 0xee, 0xfb,
  0xdc, 0x73, 0xef, 0xfd, 0xcd, 0x74, 0x86, 0x02, 0x93, 0x0e, 0xef, 0xca,
  0x7a, 0x5a, 0xf2, 0xd7, 0xab, 0x5f, 0xad, 0x3d, 0xf3, 0xc6, 0xaa, 0x33,
  0x59, 0x37, 0xdf, 0x33, 0x71, 0x72, 0x6c, 0xe9, 0x96, 0x8b, 0x5b, 0x87,
  0x7e, 0x57, 0xfc, 0xa1, 0x53, 0x37, 0xec, 0x20, 0x8a, 0x12, 0xd1, 0x64,
  0x5f, 0xad, 0x9b, 0xf4, 0xbf, 0xa7, 0xb7, 0x13, 0x5d, 0x2a, 0x94, 0x7c,
  0x23, 0xb0, 0xdf, 0x46, 0x14, 0x61, 0x1b, 0x3b, 0x51, 0x09, 0xe8, 0x83,
  0x4e, 0xa2, 0x5f, 0x83, 0x3e, 0x99, 0x4d, 0x94, 0x05, 0x6a, 0x29, 0x24,
  0x2a, 0x6b, 0x26, 0x1a, 0x9a, 0x03, 0x5d, 0x35, 0xd1, 0x43, 0xc0, 0x23,
  0xc0, 0x29, 0xe0, 0x31, 0xe0, 0x65, 0xc0, 0x5e, 0x43, 0x54, 0x05, 0xd4,
  0x00, 0xab, 0x80, 0x46, 0xa0, 0x15, 0x68, 0x07, 0xb6, 0x00, 0xbd, 0xc0,
  0x00, 0x70, 0x09, 0x70, 0x0d, 0xf0, 0x29, 0xe0, 0x0e, 0xe0, 0x2e, 0xe0,
  0x1e, 0xe0, 0x01, 0xe0, 0x41, 0xe0, 0x11, 0xe0, 0x51, 0xe0, 0x09, 0xe0,
  0xab, 0xc0, 0x37, 0x80, 0xa7, 0x80, 0xef, 0x00, 0x67, 0x01, 0xb1, 0x12,
  0xed, 0x01, 0x32, 0x80, 0x6c, 0x20, 0x0f, 0x98, 0x03, 0x2c, 0x00, 0x3c,
  0xc0, 0x32, 0xe0, 0x7c, 0xc0, 0x0b, 0x6c, 0x06, 0x2e, 0x03, 0x6e, 0x03,
  0x4e, 0x01, 0x3f, 0x04, 0x7e, 0x07, 0xe4, 0xd6, 0x12, 0xad, 0x06, 0x7c,
  0x40, 0x18, 0x38, 0x06, 0x7c, 0x16, 0x78, 0x1c, 0xf8, 0x01, 0xf0, 0x06,
  0x20, 0xea, 0x88, 0x16, 0x02, 0xf5, 0xc0, 0x45, 0xc0, 0x25, 0xc0, 0xc7,
  0x80, 0x7b, 0x80, 0x67, 0x81, 0xdf, 0x02, 0xf6, 0x55, 0x44, 0x4b, 0x81,
  0xad, 0xc0, 0x20, 0xf0, 0x61, 0xe0, 0x51, 0xe0, 0x45, 0xe0, 0x3f, 0x81,
  0xdc, 0x7a, 0x8c, 0x05, 0x10, 0x04, 0xee, 0x00, 0x5e, 0x00, 0xac, 0x0d,
  0x44, 0xe5, 0xc0, 0x6e, 0xe0, 0x18, 0x70, 0x1a, 0x10, 0x8d, 0x44, 0x6b,
  0x81, 0x08, 0x70, 0x07, 0xf0, 0x73, 0x60, 0xf9, 0x6a, 0x22, 0x3f, 0x70,
  0x13, 0x70, 0x1a, 0x78, 0x03, 0xc8, 0x6a, 0x22, 0xba, 0x00, 0xd8, 0x0a,
  0x8c, 0x00, 0xc7, 0x80, 0x07, 0x80, 0x7f, 0x01, 0x9e, 0x03, 0x7e, 0x09,
  0xbc, 0x0b, 0xb8, 0x31, 0x57, 0xa5, 0xc0, 0x2a, 0x60, 0x03, 0xd0, 0x0d,
  0x5c, 0x04, 0x84, 0x80, 0x08, 0x10, 0x07, 0x26, 0x81, 0xcb, 0x80, 0xab,
  0x81, 0xeb, 0x81, 0x1b, 0x81, 0x4f, 0x00, 0xb7, 0x03, 0x77, 0x01, 0xf7,
  0x01, 0x0f, 0x02, 0x8f, 0x00, 0x8f, 0x02, 0x4f, 0x00, 0x5f, 0x07, 0xfe,
  0x15, 0x78, 0x06, 0x78, 0x0e, 0x38, 0x03, 0xbc, 0x0a, 0xbc, 0x01, 0xbc,
  0x09, 0xfc, 0x01, 0x78, 0x07, 0xf8, 0x6f, 0xc0, 0xb4, 0x86, 0xc8, 0x01,
  0x64, 0x03, 0x6e, 0xa0, 0x18, 0x58, 0x08, 0x2c, 0x01, 0xca, 0x80, 0x2a,
  0xa0, 0x0e, 0x68, 0x04, 0xd6, 0x02, 0x1b, 0x81, 0x6e, 0x60, 0x3b, 0xb0,
  0x13, 0xd8, 0x03, 0x04, 0x80, 0x51, 0xe0, 0x32, 0xe0, 0x23, 0xc0, 0x09,
  0xe0, 0x5e, 0xe0, 0x8b, 0xc0, 0xd7, 0x80, 0x67, 0x80, 0x9f, 0x02, 0xbf,
  0x02, 0xfe, 0x08, 0xbc, 0x07, 0x38, 0xd7, 0xa2, 0x2e, 0xa0, 0x14, 0xf0,
  0x02, 0xcd, 0xc0, 0x66, 0xc0, 0x07, 0xec, 0x07, 0x46, 0x80, 0x4b, 0x81,
  0x9b, 0x81, 0x3b, 0x81, 0x7b, 0x80, 0xaf, 0x01, 0xcf, 0x01, 0xaf, 0x03,
  0x7f, 0x01, 0xde, 0x03, 0xec, 0xeb, 0x88, 0xe6, 0x02, 0x65, 0x40, 0x15,
  0xd0, 0x02, 0xec, 0x01, 0x0e, 0x00, 0xe3, 0xc0, 0xd5, 0xc0, 0xa7, 0x81,
  0xc7, 0x81, 0x6f, 0x00, 0xdf, 0x03, 0x5e, 0x00, 0xfe, 0x02, 0x98, 0x5a,
  0x88, 0x5c, 0x40, 0x05, 0xb0, 0x05, 0xe8, 0x03, 0x0e, 0x00, 0x13, 0xc0,
  0x8d, 0xc0, 0x49, 0xe0, 0xcb, 0xc0, 0x53, 0xc0, 0xcf, 0x80, 0xdf, 0x03,
  0xff, 0x05, 0x64, 0xb5, 0xa2, 0xed, 0xc0, 0x72, 0xa0, 0x15, 0x18, 0x04,
  0xc2, 0xc0, 0x75, 0xc0, 0xdd, 0xc0, 0x63, 0xc0, 0x0f, 0x80, 0x3f, 0x03,
  0xe6, 0xf5, 0x44, 0x05, 0xc0, 0x0a, 0xa0, 0x1e, 0xd8, 0x08, 0xec, 0x02,
  0x02, 0x40, 0x18, 0x98, 0x00, 0xae, 0x02, 0x6e, 0x05, 0x1e, 0x00, 0x9e,
  0x00, 0x9e, 0x03, 0x5e, 0x05, 0xfe, 0x08, 0x64, 0xb4, 0xa1, 0x2e, 0xa0,
  0x02, 0x68, 0x06, 0x76, 0x01, 0x07, 0x81, 0xab, 0x81, 0x8f, 0x00, 0x37,
  0x01, 0xb7, 0x01, 0x5f, 0x02, 0x4e, 0x03, 0x2f, 0x02, 0x67, 0x81, 0xbf,
  0x00, 0xb6, 0x0d, 0x44, 0xf9, 0xc0, 0x0a, 0x60, 0x35, 0xb0, 0x05, 0xd8,
  0x0b, 0xc4, 0x81, 0xa3, 0xc0, 0xad, 0xc0, 0x17, 0x81, 0xaf, 0x00, 0xdf,
  0x00, 0x7e, 0x08, 0x9c, 0x05, 0xfe, 0x00, 0xbc, 0x03, 0x58, 0xda, 0x89,
  0x0a, 0x81, 0x52, 0xa0, 0x0e, 0x68, 0x01, 0xb6, 0x02, 0x7e, 0xe0, 0x30,
  0x30, 0x06, 0x5c, 0x0b, 0x7c, 0x16, 0x78, 0x08, 0x78, 0x1c, 0x78, 0x0e,
  0x78, 0x05, 0x78, 0x03, 0xf8, 0x1d, 0xf0, 0x27, 0xe0, 0x6f, 0x40, 0x26,
  0x02, 0x58, 0x1e, 0xb0, 0x0c, 0x68, 0x00, 0xba, 0x81, 0x8b, 0x81, 0x18,
  0xf0, 0x31, 0xe0, 0x6e, 0xe0, 0x51, 0xe0, 0x07, 0xc0, 0x8b, 0xc0, 0x2f,
  0x81, 0x3f, 0x01, 0xe6, 0x4d, 0x44, 0x39, 0xc0, 0x42, 0x60, 0x39, 0xe0,
  0x05, 0xd6, 0x01, 0x5d, 0x40, 0x3f, 0x70, 0x08, 0x38, 0x02, 0x1c, 0x03,
  0x3e, 0x06, 0x7c, 0x02, 0xb8, 0x17, 0x38, 0x0d, 0xfc, 0x04, 0x78, 0x05,
  0xb0, 0x6c, 0x46, 0xbc, 0x04, 0x2a, 0x81, 0x66, 0xa0, 0x15, 0xd8, 0x0e,
  0x5c, 0x0c, 0x4c, 0x02, 0x37, 0x02, 0x9f, 0x05, 0x1e, 0x01, 0x9e, 0x06,
  0x7e, 0x01, 0xbc, 0x05, 0xfc, 0x15, 0x70, 0x77, 0x60, 0xfc, 0x80, 0x16,
  0xe0, 0x42, 0x60, 0x1c, 0xb8, 0x12, 0xb8, 0x19, 0xf8, 0x0c, 0xf0, 0x10,
  0x70, 0x0a, 0xf8, 0x26, 0xf0, 0x1c, 0xf0, 0x2a, 0xf0, 0x16, 0xf0, 0x5f,
  0x40, 0x46, 0x27, 0xe6, 0x1e, 0x58, 0x00, 0xac, 0x01, 0x06, 0x80, 0x1b,
  0x80, 0x53, 0xc0, 0xf3, 0xc0, 0x1f, 0x59, 0xbf, 0x05, 0xeb, 0x1f, 0xd8,
  0x0d, 0x7c, 0x18, 0xb8, 0x17, 0xf8, 0x02, 0xf0, 0x28, 0xf0, 0x35, 0xe0,
  0x34, 0xf0, 0x06, 0xe0, 0xee, 0x42, 0xcc, 0x06, 0x76, 0x02, 0xfb, 0x80,
  0x00, 0x70, 0x18, 0xb8, 0x14, 0xb8, 0x11, 0xe0, 0x4d, 0xa3, 0x00, 0x98,
  0x0f, 0x9c, 0x0f, 0x5c, 0x00, 0x94, 0x03, 0x15, 0x40, 0x25, 0x50, 0x05,
  0x78, 0x01, 0x6c, 0x01, 0x84, 0xf0, 0x4c, 0x08, 0xaf, 0x84, 0xf0, 0x49,
  0x08, 0x8f, 0x84, 0x10, 0x48, 0x08, 0x79, 0x84, 0x10, 0x47, 0x08, 0x69,
  0x84, 0x10, 0x46, 0x08, 0x4f, 0x84, 0xf0, 0x40, 0x58, 0xaa, 0x84, 0x65,
  0x46, 0x70, 0x7b, 0x82, 0x3b, 0x13, 0x5c, 0x92, 0xe0, 0x5a, 0x04, 0xf7,
  0xa0, 0x76, 0xbd, 0x2f, 0x61, 0x88, 0x09, 0x43, 0x45, 0xe8, 0x32, 0xa1,
  0x4b, 0x84, 0xe6, 0x12, 0x9a, 0x44, 0xdd, 0xc0, 0x56, 0x60, 0x1b, 0xd0,
  0x03, 0x60, 0x3b, 0x23, 0x6c, 0x73, 0xd4, 0x0b, 0xf8, 0x80, 0x9d, 0x40,
  0x1f, 0xb0, 0x0b, 0xd8, 0x0d, 0xec, 0x01, 0xf6, 0x02, 0xfd, 0xc0, 0x3e,
  0xe0, 0x42, 0xe0, 0x22, 0xe0, 0x62, 0xde, 0xfb, 0x00, 0x3f, 0x30, 0x00,
  0x0c, 0x02, 0x43, 0x40, 0x00, 0x38, 0x00, 0x1c, 0x04, 0x86, 0x81, 0x20,
  0xa9, 0xfd, 0xf1, 0x23, 0xc0, 0x09, 0xe0, 0x36, 0x52, 0xe3, 0x92, 0xfc,
  0x97, 0xaf, 0xa9, 0xa7, 0x4a, 0x8d, 0x95, 0xd0, 0xe9, 0x39, 0x9a, 0x67,
  0x79, 0x91, 0xe6, 0xcb, 0xc0, 0x17, 0x6b, 0xde, 0x0b, 0x7e, 0xae, 0xe6,
  0x1b, 0xc0, 0xcf, 0xd3, 0x7c, 0x8b, 0x81, 0xdf, 0x6c, 0xe0, 0x7b, 0xaa,
  0xd4, 0x3c, 0x98, 0x74, 0xf9, 0x0b, 0x34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 0xf4, 0x4c, 0x4e, 0xf6, 0xed, 0xad,
  0xbf, 0xa4, 0x76, 0xcf, 0xc4, 0xe6, 0xb1, 0x43, 0xa3, 0x03, 0x81, 0x5d,
  0x71, 0xec, 0x8b, 0x64, 0x2a, 0xeb, 0x24, 0xb1, 0x82, 0x6c, 0xcd, 0xc1,
  0x70, 0x30, 0x01, 0xa7, 0x59, 0xdb, 0x44, 0x96, 0xb5, 0x4d, 0x78, 0xda,
  0xf8, 0xb9, 0xa2, 0x8f, 0xb2, 0xdb, 0x86, 0xfd, 0xe1, 0x83, 0x81, 0x5d,
  0xfe, 0xc4, 0xe0, 0x70, 0x20, 0x46, 0x73, 0xda, 0x22, 0x23, 0xd1, 0x48,
  0x38, 0x10, 0x4e, 0xf4, 0x04, 0x02, 0xb1, 0xbe, 0x60, 0x60, 0xa2, 0xf2,
  0x90, 0x7f, 0xdc, 0x4f, 0x8e, 0xb6, 0x48, 0x38, 0x1c, 0x18, 0x4c, 0x04,
  0x23, 0x61, 0x72, 0x6f, 0x68, 0x28, 0x2d, 0xed, 0x3d, 0x12, 0x4e, 0x0c,
  0x07, 0x12, 0xc1, 0xc1, 0xb6, 0x90, 0x3f, 0x8e, 0xaa, 0x36, 0x92, 0x69,
  0x63, 0x07, 0x89, 0x0e, 0x32, 0x75, 0xac, 0x00, 0x3a, 0xc8, 0xdc, 0xd1,
  0xc1, 0x89, 0x4e, 0x30, 0x9d, 0x5d, 0x60, 0xba, 0x48, 0x74, 0x92, 0xa9,
  0x93, 0xd1, 0x45, 0x0b, 0x3b, 0xc7, 0x06, 0x03, 0xad, 0x83, 0x83, 0x81,
  0x78, 0x3c, 0x38, 0x10, 0x0c, 0x05, 0x13, 0x47, 0xb6, 0x46, 0x86, 0x02,
  0x3d, 0xb1, 0xc8, 0x78, 0x70, 0x08, 0xad, 0x28, 0xda, 0x12, 0x38, 0x32,
  0x10, 0xf1, 0xc7, 0x86, 0x36, 0x04, 0xe3, 0x23, 0xc1, 0x78, 0xbc, 0x2b,
  0x18, 0x4f, 0x04, 0xc2, 0x50, 0x08, 0x94, 0xd4, 0x85, 0xb2, 0xbb, 0xb8,
  0xec, 0x2e, 0x94, 0xdd, 0xd5, 0xd9, 0x41, 0x16, 0x3c, 0x38, 0xd9, 0x85,
  0xa4, 0x54, 0x42, 0x61, 0xe9, 0x62, 0xcd, 0x9c, 0x2e, 0x7f, 0x78, 0x28,
  0x16, 0x09, 0x0e, 0x55, 0xf9, 0xa3, 0xd1, 0xaa, 0x56, 0x34, 0x7f, 0x1c,
  0x55, 0x35, 0x51, 0x6d, 0xba, 0x3c, 0x1a, 0x0d, 0x05, 0x07, 0xfd, 0xdc,
  0xb7, 0xd2, 0xa4, 0x4d, 0x57, 0xf0, 0x40, 0x60, 0xf0, 0xc8, 0x60, 0x28,
  0xd0, 0xe6, 0x0f, 0x85, 0x06, 0xfc, 0x83, 0x87, 0xe3, 0x4d, 0x34, 0x77,
  0xb6, 0x5c, 0x46, 0xd5, 0x60, 0x24, 0x8c, 0xa6, 0x26, 0xaa, 0xda, 0x98,
  0x4e, 0x26, 0x8c, 0xaa, 0x83, 0x31, 0x7f, 0x74, 0x38, 0x38, 0x18, 0xaf,
  0x6a, 0xf3, 0x87, 0xc7, 0xfd, 0x28, 0x70, 0xd1, 0x39, 0x54, 0x91, 0x50,
  0x24, 0xb6, 0x31, 0x18, 0x4a, 0x04, 0x62, 0xb3, 0xeb, 0xbb, 0xfd, 0x89,
  0x58, 0x70, 0xb2, 0x89, 0x56, 0xbc, 0xaf, 0x3e, 0xad, 0xa8, 0xe2, 0x99,
  0xa6, 0x3d, 0xfe, 0x60, 0x38, 0x71, 0x6e, 0x4d, 0x44, 0x6a, 0x8a, 0x66,
  0x6a, 0x76, 0xc0, 0x05, 0x9a, 0x68, 0x5e, 0x4a, 0x11, 0x89, 0x57, 0xad,
  0x1f, 0x0b, 0x86, 0x86, 0x4a, 0xfb, 0xda, 0x77, 0xf4, 0x76, 0x6c, 0xdb,
  0xda, 0x44,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x4b, 0x69, 0x8d, 0xc5,
  0xfc, 0x47, 0x78, 0x7a, 0x78, 0x0f, 0x9d, 0x12, 0x77, 0xa0, 0x26, 0x3f,
  0x56, 0x7a, 0x13, 0xb9, 0x0c, 0x52, 0x65, 0x37, 0x5d, 0xd2, 0x4c, 0x4e,
  0xe3, 0x9c, 0x91, 0xbd, 0x77, 0xc3, 0x96, 0x8b, 0x3b, 0xb6, 0xfa, 0x28,
  0x77, 0xda, 0xd4, 0x90, 0xd3, 0xe8, 0x46, 0x24, 0xfa, 0xc8, 0xd4, 0x87,
  0xd3, 0x54, 0x1f, 0xce, 0x56, 0x96, 0x3e, 0x3e, 0xcc, 0x59, 0xf9, 0x29,
  0x25, 0x38, 0x85, 0xf5, 0x75, 0x92, 0xad, 0xaf, 0xb3, 0x63, 0xe3, 0x46,
  0x9c, 0xb5, 0xfa, 0x3a, 0xa5, 0x18, 0x67, 0x3b, 0x3c, 0xba, 0x38, 0xcd,
  0x67, 0xb1, 0xbe, 0xce, 0xbd, 0x30, 0x63, 0xa6, 0x8b, 0x4b, 0xe8, 0x92,
  0x25, 0x74, 0xa9, 0x12, 0xf8, 0xe8, 0xd6, 0x07, 0x23, 0x08, 0x58, 0x6e,
  0x97, 0x44, 0x56, 0xd4, 0x25, 0xb3, 0x76, 0xed, 0x65, 0x76, 0x6f, 0xa7,
  0x7c, 0x76, 0xc9, 0x27, 0x17, 0xb6, 0x17, 0x75, 0xee, 0x95, 0x86, 0x62,
  0x2f, 0x99, 0xf7, 0x72, 0x06, 0x3c, 0xba, 0x98, 0x45, 0x93, 0x60, 0x6e,
  0xdd, 0xdb, 0x29, 0x5b, 0xca, 0x04, 0xd9, 0x40, 0x58, 0xce, 0x06, 0x68,
  0x83, 0x6d, 0x6f, 0x97, 0x14, 0x5b, 0x99, 0xb2, 0x1c, 0x45, 0xf6, 0xe3,
  0xdc, 0xda, 0xdf, 0x41, 0x0e, 0x15, 0xad, 0x4b, 0xbd, 0x5e, 0x6f, 0x8a,
  0xaf, 0x06, 0x9f, 0x35, 0xc5, 0x1b, 0x12, 0x69, 0x9a, 0x1a, 0x63, 0x62,
  0xa5, 0x31, 0x51, 0x6b, 0x4c, 0xd4, 0x19, 0x13, 0xab, 0x8c, 0x89, 0x7a,
  0x63, 0xa2, 0xc1, 0x98, 0x68, 0x34, 0xb4, 0xc6, 0x58, 0x4d, 0x8d, 0xb1,
  0x99, 0x2b, 0x0d, 0x7c, 0xad, 0x81, 0xaf, 0x33, 0xf0, 0xab, 0x0c, 0x7c,
  0xbd, 0x81, 0x6f, 0x30, 0xf0, 0x8d, 0x53, 0x15, 0x6c, 0x0c, 0xf9, 0x0f,
  0xc6, 0x29, 0x3b, 0x6d, 0x07, 0xa3, 0x02, 0xff, 0x39, 0x76, 0x4a, 0xce,
  0xc1, 0xde, 0xdf, 0xe5, 0x1f, 0x08, 0x84, 0xc8, 0xec, 0x1f, 0x1a, 0xa2,
  0xb9, 0x78, 0x9c, 0xfb, 0x28, 0x40, 0x2e, 0xff, 0x01, 0x38, 0x2e, 0xbb,
  0x9d, 0x0a, 0xb4, 0x43, 0x94, 0xc7, 0xe7, 0xa0, 0xf5, 0x63, 0x89, 0x44,
  0x24, 0xdc, 0x13, 0x43, 0xe9, 0x52, 0x14, 0x38, 0x80, 0x63, 0x90, 0xd1,
  0xca, 0x36, 0x10, 0x81, 0xc5, 0x08, 0xd9, 0x06, 0xfd, 0x08, 0xcc, 0x43,
  0xe4, 0x52, 0xd4, 0x70, 0x25, 0xc9, 0x1e, 0x4c, 0xbb, 0xc5, 0x58, 0x71,
  0x70, 0xf7, 0xc7, 0x28, 0x97, 0x43, 0x46, 0xc0, 0x60, 0x56, 0x24, 0x05,
  0x86, 0x2d, 0x4d, 0x9f, 0xd2, 0x29, 0x6b, 0x90, 0x23, 0x31, 0x1f, 0x7b,
  0x5b, 0x13, 0x94, 0x93, 0x4a, 0xb4, 0x45, 0xc6, 0xc2, 0x09, 0x14, 0x0e,
  0x2b, 0x1c, 0x96, 0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, 0xbf, 0xbe, 0x20, 0x06, 0x79, 0x2e,
  0x52, 0x72, 0x20, 0x02, 0x43, 0xd3, 0x43, 0x9c, 0x67, 0x56, 0x95, 0x6c,
  0xaa, 0x1e, 0x97, 0xcd, 0x81, 0xe0, 0xc1, 0xe1, 0x84, 0x2c, 0x67, 0x33,
  0xb8, 0x10, 0xa7, 0x02, 0x43, 0x3b, 0x02, 0x07, 0xd1, 0xc7, 0xf5, 0x78,
  0xc2, 0x91, 0xce, 0xa5, 0xe2, 0x7e, 0x70, 0xe7, 0x64, 0xa9, 0xc6, 0x99,
  0x28, 0x4c, 0x0a, 0xd3, 0xce, 0x51, 0xb4, 0x3c, 0x29, 0xe6, 0xd3, 0x2c,
  0x46, 0x8b, 0x8f, 0x07, 0x7d, 0xc1, 0x58, 0x62, 0xcc, 0x1f, 0x4a, 0x6e,
  0xd0, 0xac, 0x91, 0x5d, 0xc5, 0xa9, 0x36, 0xe1, 0xc7, 0xe6, 0x23, 0x27,
  0x27, 0x4d, 0xcb, 0x35, 0x76, 0x45, 0xd4, 0xcc, 0x6c, 0x0b, 0xf7, 0xc2,
  0x0d, 0x03, 0x61, 0x39, 0x20, 0xa8, 0xcc, 0x8f, 0x51, 0x4c, 0x04, 0xe4,
  0x04, 0x6c, 0x85, 0xc1, 0x78, 0x40, 0x0e, 0x5d, 0xee, 0x54, 0x77, 0x95,
  0x83, 0x3b, 0xa7, 0x04, 0x68, 0xad, 0x1d, 0xa9, 0x1d, 0xfe, 0x89, 0xdd,
  0x49, 0x66, 0x8f, 0x6c, 0xc0, 0x8e, 0x48, 0x24, 0x91, 0xca, 0x9d, 0xba,
  0x91, 0x71, 0x97, 0xf3, 0x8c, 0x02, 0x35, 0x6d, 0xec, 0x19, 0xbd, 0x47,
  0xb0, 0xea, 0x47, 0x7a, 0xb1, 0x99, 0x04, 0xd1, 0xec, 0xc2, 0x94, 0x64,
  0x67, 0xb0, 0x2f, 0x98, 0x0a, 0x2a, 0xec, 0x7a, 0x6a, 0x22, 0x76, 0xc8,
  0x55, 0xc4, 0x19, 0x7d, 0xd8, 0x8b, 0x43, 0x5b, 0xc7, 0x46, 0xd8, 0x65,
  0x94, 0xb7, 0xec, 0xe4, 0xfb, 0x62, 0x28, 0x18, 0xc6, 0x40, 0xb3, 0x55,
  0x5c, 0x66, 0xdb, 0x19, 0x0e, 0xf2, 0x3a, 0x65, 0x2b, 0x69, 0x34, 0xfd,
  0x5e, 0x21, 0x7b, 0x6d, 0xa8, 0x8a, 0x67, 0xf3, 0xdc, 0x37, 0x04, 0x59,
  0x9c, 0x52, 0xf9, 0x22, 0x87, 0x31, 0x7a, 0x0b, 0x52, 0x69, 0x99, 0x3f,
  0x14, 0xc0, 0x39, 0x29, 0x1a, 0xf2, 0x1f, 0x51, 0x6b, 0xd8, 0x02, 0xed,
  0x6e, 0xf9, 0xdc, 0x43, 0xb6, 0x61, 0xb9, 0xab, 0x52, 0xb1, 0xa2, 0x69,
  0xcb, 0x6d, 0x73, 0x84, 0x5b, 0x91, 0xab, 0x35, 0xd1, 0x68, 0x8f, 0x9f,
  0xdd, 0x8e, 0x5c, 0x29, 0xc1, 0x8e, 0x40, 0x7c, 0x6c, 0x64, 0x4a, 0xb2,
  0x3e, 0x15, 0x0a, 0x29, 0x5b, 0x49, 0x36, 0xe8, 0xa8, 0xa1, 0x93, 0x98,
  0xf6, 0x0d, 0x91, 0x89, 0x30, 0x65, 0xa5, 0x92, 0x3b, 0xa3, 0x54, 0x90,
  0x4a, 0x48, 0x97, 0xd8, 0x1c, 0x1c, 0x1a, 0x42, 0x0f, 0x74, 0xad, 0x72,
  0xe3, 0x97, 0x79, 0xd2, 0x04, 0x31, 0xff, 0xc1, 0x64, 0x99, 0x52, 0x80,
  0x62, 0x8a, 0x74, 0x72, 0x2c, 0x94, 0x08, 0x6a, 0x57, 0x90, 0x0b, 0x2a,
  0x59, 0x99, 0x7c, 0x59, 0x40, 0xf9, 0x3a, 0x81, 0x73, 0x4e, 0x24, 0x36,
  0x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c, 0x96, 0xb0, 0xf4, 0xb7, 0xb0, 0x8c, 0x7e, 0x61, 0x63, 0xf4,
  0xb6, 0x45, 0x06, 0x78, 0x47, 0x22, 0x77, 0xe4, 0xc0, 0x01, 0x38, 0xf3,
  0xfa, 0x23, 0x6d, 0xc9, 0x2d, 0x2b, 0x4e, 0x79, 0x91, 0x70, 0xf2, 0x2d,
  0x56, 0x9b, 0xdc, 0x93, 0x10, 0x95, 0xa6, 0x44, 0x1b, 0x02, 0x71, 0xb8,
  0xfd, 0x11, 0x76, 0xbb, 0x29, 0xa1, 0x76, 0x4d, 0x43, 0xce, 0xa4, 0x6f,
  0xce, 0x9f, 0x12, 0xf5, 0xfa, 0xc7, 0x03, 0xc9, 0x30, 0xa4, 0xe2, 0x8a,
  0xc1, 0x5e, 0x0e, 0x75, 0x7a, 0x11, 0xbd, 0x89, 0x48, 0x34, 0x0a, 0x51,
  0x11, 0x76, 0x0c, 0xd9, 0x8e, 0x69, 0xd7, 0x4e, 0x74, 0x22, 0x0c, 0x57,
  0x9c, 0xa0, 0xec, 0x88, 0xf1, 0xfd, 0x04, 0xe5, 0x44, 0xd2, 0x4e, 0x0f,
  0xe4, 0x8c, 0x84, 0xe5, 0x52, 0x52, 0x0e, 0x95, 0x19, 0x09, 0x27, 0xd7,
  0x41, 0xb6, 0x64, 0xa5, 0xcb, 0x46, 0x31, 0xdc, 0x76, 0x99, 0x84, 0x2f,
  0x67, 0xf0, 0x79, 0x44, 0x66, 0x85, 0x45, 0x6f, 0xf0, 0x92, 0x40, 0x72,
  0xbb, 0xcc, 0x42, 0x12, 0x5b, 0x4b, 0x2b, 0x96, 0xc8, 0x90, 0xd4, 0x21,
  0x91, 0xd4, 0xe9, 0xe4, 0x8e, 0xc0, 0x08, 0xea, 0x92, 0x49, 0xe3, 0x09,
  0x04, 0x6d, 0x50, 0x13, 0x2e, 0xdb, 0x60, 0x8b, 0x28, 0xcf, 0xb0, 0x46,
  0xe5, 0xaa, 0xc8, 0x8e, 0xa6, 0xad, 0x87, 0x85, 0xd1, 0x48, 0x74, 0x2c,
  0x34, 0xeb, 0x59, 0x20, 0x0f, 0x7b, 0x5c, 0x22, 0xed, 0x3d, 0x10, 0xd9,
  0x63, 0xea, 0x5d, 0x23, 0x95, 0xc4, 0xb0, 0x91, 0xc0, 0x35, 0x62, 0xb3,
  0xbf, 0x86, 0xa4, 0x05, 0x31, 0xd9, 0xc4, 0x59, 0x8e, 0x58, 0x0e, 0xa5,
  0xe5, 0xae, 0x90, 0x13, 0x27, 0x2a, 0x9e, 0x16, 0x39, 0xee, 0x64, 0x86,
  0x9f, 0x50, 0x4e, 0x9c, 0xf7, 0xd3, 0xd4, 0x7b, 0x41, 0x72, 0xc6, 0xf5,
  0x7e, 0x28, 0xb7, 0xd1, 0x22, 0x63, 0xaa, 0x43, 0xf5, 0x58, 0x2e, 0xb1,
  0x82, 0xf8, 0x39, 0xb6, 0x3b, 0xca, 0x87, 0xb4, 0x63, 0x84, 0xcf, 0x57,
  0xec, 0x2b, 0x71, 0x55, 0x0d, 0x97, 0x88, 0x36, 0xe1, 0x98, 0xc7, 0x0b,
  0xae, 0x30, 0xce, 0x3b, 0xcf, 0x78, 0xf0, 0xa0, 0x5c, 0x23, 0xeb, 0xfd,
  0x31, 0x59, 0x39, 0x15, 0x43, 0x7c, 0xce, 0x97, 0x52, 0x32, 0x7b, 0x6a,
  0x33, 0x21, 0x3b, 0xa7, 0xb8, 0x2b, 0xdc, 0x32, 0xb5, 0x7d, 0xa0, 0x8c,
  0x38, 0x62, 0x27, 0x8e, 0x77, 0x72, 0x3b, 0x2c, 0x4c, 0x53, 0xac, 0x0f,
  0x0c, 0xa3, 0x32, 0x54, 0x30, 0x25, 0x4e, 0xdb, 0x6e, 0xe6, 0x9f, 0x53,
  0xcc, 0xe7, 0x0e, 0x7f, 0x42, 0xd6, 0xe1, 0x0b, 0xe0, 0x08, 0x12, 0x43,
  0x10, 0x4b, 0x6e, 0x39, 0x38, 0x8d, 0x50, 0x56,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2, 0xe3,
  0x48, 0x1e, 0x55, 0x0e, 0xff, 0x3f, 0x6a, 0xb3, 0x4b, 0x7d, 0x4f, 0x86,
  0xc7, 0xd1, 0xe6, 0x51, 0xdf, 0x89, 0xe1, 0xff, 0x63, 0xcd, 0xc6, 0xdc,
  0x56, 0xfe, 0x4d, 0xc9, 0xff, 0x01, 0x6a, 0xc2, 0xe3, 0xa7, 0x8c, 0x52,
  0x00, 0x00
};

//==============================================================================
#if JUCE_PUSH_NOTIFICATIONS && JUCE_MODULE_AVAILABLE_juce_gui_extra
 bool juce_handleNotificationIntent (void*);
 void juce_firebaseDeviceNotificationsTokenRefreshed (void*);
 void juce_firebaseRemoteNotificationReceived (void*);
 void juce_firebaseRemoteMessagesDeleted();
 void juce_firebaseRemoteMessageSent (void*);
 void juce_firebaseRemoteMessageSendError (void*, void*);
#endif

#if JUCE_IN_APP_PURCHASES && JUCE_MODULE_AVAILABLE_juce_product_unlocking
 void juce_handleOnResume();
#else
 static void juce_handleOnResume() {}
#endif

//==============================================================================
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (create, "<init>", "(II)V") \
 FIELD (width, "width", "I") \
 FIELD (height, "height", "I") \

DECLARE_JNI_CLASS (AndroidLayoutParams, "android/view/ViewGroup$LayoutParams")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (addView,          "addView",             "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V") \
 METHOD (removeView,       "removeView",          "(Landroid/view/View;)V") \
 METHOD (updateViewLayout, "updateViewLayout",    "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V")

DECLARE_JNI_CLASS (AndroidViewManager, "android/view/ViewManager")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (create,             "<init>",             "(IIIIIII)V") \
 METHOD (createDefault,      "<init>",             "()V") \
 FIELD  (gravity,            "gravity",            "I") \
 FIELD  (systemUiVisibility, "systemUiVisibility", "I") \
 FIELD  (windowAnimations,   "windowAnimations",   "I") \
 FIELD  (flags,              "flags",              "I") \
 FIELD  (softInputMode,      "softInputMode",      "I") \
 FIELD  (format,             "format",             "I") \
 FIELD  (type,               "type",               "I") \
 FIELD  (x,                  "x",                  "I") \
 FIELD  (y,                  "y",                  "I") \

DECLARE_JNI_CLASS (AndroidWindowManagerLayoutParams, "android/view/WindowManager$LayoutParams")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 FIELD  (layoutInDisplayCutoutMode, "layoutInDisplayCutoutMode", "I")

DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowManagerLayoutParams28, "android/view/WindowManager$LayoutParams", 28)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (setFitInsetsSides,              "setFitInsetsSides",              "(I)V") \
 METHOD (setFitInsetsIgnoringVisibility, "setFitInsetsIgnoringVisibility", "(Z)V") \

DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowManagerLayoutParams30, "android/view/WindowManager$LayoutParams", 30)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (getSystemWindowInsetTop,    "getSystemWindowInsetTop",     "()I") \
 METHOD (getSystemWindowInsetBottom, "getSystemWindowInsetBottom",  "()I") \
 METHOD (getSystemWindowInsetLeft,   "getSystemWindowInsetLeft",    "()I") \
 METHOD (getSystemWindowInsetRight,  "getSystemWindowInsetRight",   "()I") \
 METHOD (getStableInsetTop,          "getStableInsetTop",           "()I") \
 METHOD (getStableInsetBottom,       "getStableInsetBottom",        "()I") \
 METHOD (getStableInsetLeft,         "getStableInsetLeft",          "()I") \
 METHOD (getStableInsetRight,        "getStableInsetRight",         "()I") \
 METHOD (consumeSystemWindowInsets,  "consumeSystemWindowInsets",   "()Landroid/view/WindowInsets;") \

 DECLARE_JNI_CLASS (AndroidWindowInsets, "android/view/WindowInsets")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (getDisplayCutout, "getDisplayCutout", "()Landroid/view/DisplayCutout;") \
 METHOD (consumeDisplayCutout, "consumeDisplayCutout", "()Landroid/view/WindowInsets;")

 DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsets28, "android/view/WindowInsets", 28)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (getInsets, "getInsets", "(I)Landroid/graphics/Insets;") \
 STATICFIELD (CONSUMED, "CONSUMED", "Landroid/view/WindowInsets;")

 DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsets30, "android/view/WindowInsets", 30)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (getSafeInsetBottom, "getSafeInsetBottom", "()I") \
 METHOD (getSafeInsetLeft,   "getSafeInsetLeft",   "()I") \
 METHOD (getSafeInsetRight,  "getSafeInsetRight",  "()I") \
 METHOD (getSafeInsetTop,    "getSafeInsetTop",    "()I")

 DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidDisplayCutout, "android/view/DisplayCutout", 28)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 FIELD (bottom, "bottom", "I") \
 FIELD (left, "left", "I") \
 FIELD (right, "right", "I") \
 FIELD (top, "top", "I")

 DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidGraphicsInsets, "android/graphics/Insets", 29)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 STATICMETHOD (ime, "ime", "()I") \
 STATICMETHOD (displayCutout, "displayCutout", "()I") \
 STATICMETHOD (systemBars, "systemBars", "()I") \

 DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowInsetsType, "android/view/WindowInsets$Type", 30)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 FIELD (first,  "first",  "Ljava/lang/Object;") \
 FIELD (second, "second", "Ljava/lang/Object;") \

 DECLARE_JNI_CLASS (AndroidPair, "android/util/Pair")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (getBounds,       "getBounds",       "()Landroid/graphics/Rect;") \
 METHOD (getWindowInsets, "getWindowInsets", "()Landroid/view/WindowInsets;") \

 DECLARE_JNI_CLASS_WITH_MIN_SDK (AndroidWindowMetrics, "android/view/WindowMetrics", 30)
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (hide,       "hide",       "()V") \

 DECLARE_JNI_CLASS (AndroidActionBar, "android/app/ActionBar")
#undef JNI_CLASS_MEMBERS

//==============================================================================
namespace
{
    enum
    {
        SYSTEM_UI_FLAG_VISIBLE = 0,
        SYSTEM_UI_FLAG_LOW_PROFILE = 1,
        SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2,
        SYSTEM_UI_FLAG_FULLSCREEN = 4,
        SYSTEM_UI_FLAG_LAYOUT_STABLE = 256,
        SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512,
        SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024,
        SYSTEM_UI_FLAG_IMMERSIVE = 2048,
        SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096
    };

    constexpr int fullScreenFlags = SYSTEM_UI_FLAG_HIDE_NAVIGATION | SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
    constexpr int FLAG_NOT_FOCUSABLE = 0x8;

    LocalRef<jobject> getCurrentOrMainActivity() noexcept
    {
        if (auto result = getCurrentActivity())
            return result;

        if (auto result = getMainActivity())
            return result;

        return {};
    }
}

//==============================================================================
static BorderSize<int> computeLogicalBorderSize (BorderSize<int> b, double displayScale)
{
    const auto getInset = [&] (int physicalSize) { return roundToInt (physicalSize / displayScale); };
    return { getInset (b.getTop()), getInset (b.getLeft()), getInset (b.getBottom()), getInset (b.getRight()) };
}

static BorderSize<int> androidDisplayCutoutToBorderSize (LocalRef<jobject> displayCutout, double displayScale)
{
    if (displayCutout == nullptr)
        return {};

    auto* env = getEnv();

    const auto getInset = [&] (jmethodID methodID) { return env->CallIntMethod (displayCutout, methodID); };

    return computeLogicalBorderSize ({ getInset (AndroidDisplayCutout.getSafeInsetTop),
                                       getInset (AndroidDisplayCutout.getSafeInsetLeft),
                                       getInset (AndroidDisplayCutout.getSafeInsetBottom),
                                       getInset (AndroidDisplayCutout.getSafeInsetRight) },
                                     displayScale);
}

static BorderSize<int> androidInsetsToBorderSize (LocalRef<jobject> insets, double displayScale)
{
    if (insets == nullptr)
        return {};

    auto* env = getEnv();

    const auto getInset = [&] (jfieldID fieldID) { return env->GetIntField (insets, fieldID); };

    return computeLogicalBorderSize ({ getInset (AndroidGraphicsInsets.top),
                                       getInset (AndroidGraphicsInsets.left),
                                       getInset (AndroidGraphicsInsets.bottom),
                                       getInset (AndroidGraphicsInsets.right) },
                                     displayScale);
}

class JuceInsets
{
    template <typename Display>
    static auto tieDisplay (Display& d) { return std::tie (d.safeAreaInsets, d.keyboardInsets); }

public:
    BorderSize<int> displayCutout, keyboard;

    static auto tie (      Displays::Display& d) { return tieDisplay (d); }
    static auto tie (const Displays::Display& d) { return tieDisplay (d); }

    auto tie() const { return std::tie (displayCutout, keyboard); }
};

static JuceInsets getInsetsFromAndroidWindowInsets (LocalRef<jobject> windowInsets, jint visibility, double scale)
{
    auto* env = getEnv();

    if (windowInsets == nullptr)
        return {};

    const auto systemAreas = std::invoke ([&]() -> BorderSize<int>
    {
        // Use the new WindowInsets API where available
        if (AndroidWindowInsets30.getInsets != nullptr)
        {
            const auto bars = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.systemBars);
            const auto cutout = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.displayCutout);
            const jint mask = cutout | bars;
            const LocalRef<jobject> insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets30.getInsets, mask) };
            return androidInsetsToBorderSize (insets, scale);
        }

        // The WindowInsets API with combined cutout/system area reporting isn't available, so
        // use the old API instead.
        const auto currentTop    = env->CallIntMethod (windowInsets, AndroidWindowInsets.getSystemWindowInsetTop);
        const auto currentLeft   = env->CallIntMethod (windowInsets, AndroidWindowInsets.getSystemWindowInsetLeft);
        const auto currentBottom = env->CallIntMethod (windowInsets, AndroidWindowInsets.getSystemWindowInsetBottom);
        const auto currentRight  = env->CallIntMethod (windowInsets, AndroidWindowInsets.getSystemWindowInsetRight);

        const auto stableBottom = env->CallIntMethod (windowInsets, AndroidWindowInsets.getStableInsetBottom);

        // This is similar to the approach taken in the AndroidX library, see WindowInsetsCompat.java.
        // System UI insets are always posted to our window, even if the UI isn't showing on-screen.
        // Therefore, we check which UI is *actually* visible, and remove the insets for any invisible UI.
        const auto hasStatus = (visibility & SYSTEM_UI_FLAG_FULLSCREEN) == 0;
        const auto hasNav = (visibility & SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0;

        const auto bottomInset = std::invoke ([&]
        {
            // This likely indicates that the IME is showing, and we want to respect the keyboard
            // insets in this case
            if (currentBottom > stableBottom)
                return currentBottom;

            if (hasNav)
                return currentBottom;

            return 0;
        });

        const auto baseBorder = computeLogicalBorderSize ({ hasStatus ? currentTop : 0,
                                                            hasNav ? currentLeft : 0,
                                                            bottomInset,
                                                            hasNav ? currentRight : 0 },
                                                          scale);

        if (AndroidWindowInsets28.getDisplayCutout == nullptr)
            return baseBorder;

        const LocalRef insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets28.getDisplayCutout) };
        const auto cutouts = androidDisplayCutoutToBorderSize (insets, scale);
        return { jmax (baseBorder.getTop(),     cutouts.getTop()),
                 jmax (baseBorder.getLeft(),    cutouts.getLeft()),
                 jmax (baseBorder.getBottom(),  cutouts.getBottom()),
                 jmax (baseBorder.getRight(),   cutouts.getRight()) };
    });

    const auto keyboard = std::invoke ([&]() -> BorderSize<int>
    {
        if (AndroidWindowInsetsType.ime == nullptr || AndroidWindowInsets30.getInsets == nullptr)
            return {};

        // The IME insets may also include the system or cutout insets, but we expect the keyboard
        // insets to be strictly additive, so remove any insets we've already included in the system areas
        const auto ime = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.ime);
        const auto bars = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.systemBars);
        const auto cutout = env->CallStaticIntMethod (AndroidWindowInsetsType, AndroidWindowInsetsType.displayCutout);
        const jint mask = ime | cutout | bars;

        const LocalRef<jobject> insets { env->CallObjectMethod (windowInsets, AndroidWindowInsets30.getInsets, mask) };
        const auto unclamped = systemAreas.subtractedFrom (androidInsetsToBorderSize (insets, scale));
        return { jmax (0, unclamped.getTop()),
                 jmax (0, unclamped.getLeft()),
                 jmax (0, unclamped.getBottom()),
                 jmax (0, unclamped.getRight()) };
    });

    return { systemAreas, keyboard };
}

/* The usage of the KeyPress class relies on its keyCode member having the standard ASCII values
   represent ASCII keycodes. However in the native Android keycodes the values for special keys
   e.g. RETURN, F1-F12 overlap with the ASCII range. Hence we need to translate them.
*/
static constexpr int translateAndroidKeyCode (int keyCode) noexcept
{
    switch (keyCode)
    {
        case 7:   return '0';
        case 8:   return '1';
        case 9:   return '2';
        case 10:  return '3';
        case 11:  return '4';
        case 12:  return '5';
        case 13:  return '6';
        case 14:  return '7';
        case 15:  return '8';
        case 16:  return '9';
        case 17:  return '*';
        case 18:  return '#';
        case 19:  return KeyPress::upKey;             // KEYCODE_DPAD_UP
        case 20:  return KeyPress::downKey;           // KEYCODE_DPAD_DOWN
        case 21:  return KeyPress::leftKey;           // KEYCODE_DPAD_LEFT
        case 22:  return KeyPress::rightKey;          // KEYCODE_DPAD_RIGHT
        case 29:  return 'A';
        case 30:  return 'B';
        case 31:  return 'C';
        case 32:  return 'D';
        case 33:  return 'E';
        case 34:  return 'F';
        case 35:  return 'G';
        case 36:  return 'H';
        case 37:  return 'I';
        case 38:  return 'J';
        case 39:  return 'K';
        case 40:  return 'L';
        case 41:  return 'M';
        case 42:  return 'N';
        case 43:  return 'O';
        case 44:  return 'P';
        case 45:  return 'Q';
        case 46:  return 'R';
        case 47:  return 'S';
        case 48:  return 'T';
        case 49:  return 'U';
        case 50:  return 'V';
        case 51:  return 'W';
        case 52:  return 'X';
        case 53:  return 'Y';
        case 54:  return 'Z';
        case 55:  return ',';
        case 56:  return '.';
        case 61:  return KeyPress::tabKey;            // KEYCODE_TAB
        case 62:  return KeyPress::spaceKey;          // KEYCODE_SPACE
        case 66:  return KeyPress::returnKey;         // KEYCODE_ENTER
        case 67:  return KeyPress::backspaceKey;      // KEYCODE_DEL
        case 68:  return '`';
        case 69:  return '-';
        case 70:  return '=';
        case 71:  return '[';
        case 72:  return ']';
        case 73:  return '\\';
        case 74:  return ';';
        case 75:  return '\'';
        case 76:  return '/';
        case 77:  return '@';
        case 81:  return '+';
        case 85:  return KeyPress::playKey;           // KEYCODE_MEDIA_PLAY_PAUSE
        case 86:  return KeyPress::stopKey;           // KEYCODE_MEDIA_STOP
        case 87:  return KeyPress::fastForwardKey;    // KEYCODE_MEDIA_NEXT
        case 88:  return KeyPress::rewindKey;         // KEYCODE_MEDIA_PREVIOUS
        case 92:  return KeyPress::pageUpKey;         // KEYCODE_PAGE_UP
        case 93:  return KeyPress::pageDownKey;       // KEYCODE_PAGE_DOWN
        case 111: return KeyPress::escapeKey;         // KEYCODE_ESCAPE
        case 112: return KeyPress::deleteKey;         // KEYCODE_FORWARD_DEL
        case 122: return KeyPress::homeKey;           // KEYCODE_MOVE_HOME
        case 123: return KeyPress::endKey;            // KEYCODE_MOVE_END
        case 124: return KeyPress::insertKey;         // KEYCODE_INSERT
        case 131: return KeyPress::F1Key;             // KEYCODE_F1
        case 132: return KeyPress::F2Key;             // KEYCODE_F2
        case 133: return KeyPress::F3Key;             // KEYCODE_F3
        case 134: return KeyPress::F4Key;             // KEYCODE_F4
        case 135: return KeyPress::F5Key;             // KEYCODE_F5
        case 136: return KeyPress::F6Key;             // KEYCODE_F6
        case 137: return KeyPress::F7Key;             // KEYCODE_F7
        case 138: return KeyPress::F8Key;             // KEYCODE_F8
        case 139: return KeyPress::F9Key;             // KEYCODE_F9
        case 140: return KeyPress::F10Key;            // KEYCODE_F10
        case 141: return KeyPress::F11Key;            // KEYCODE_F11
        case 142: return KeyPress::F12Key;            // KEYCODE_F12
        case 144: return '0';
        case 145: return '1';
        case 146: return '2';
        case 147: return '3';
        case 148: return '4';
        case 149: return '5';
        case 150: return '6';
        case 151: return '7';
        case 152: return '8';
        case 153: return '9';
        case 154: return '/';
        case 155: return '*';
        case 156: return '-';
        case 157: return '+';
        case 158: return '.';
        case 159: return ',';
        case 161: return '=';
        case 162: return '(';
        case 163: return ')';

        default:  return 0;
    }
}

static constexpr int translateAndroidKeyboardFlags (int javaFlags) noexcept
{
    constexpr int metaShiftOn = 0x1;
    constexpr int metaAltOn   = 0x02;
    constexpr int metaCtrlOn  = 0x1000;

    int flags = 0;

    if ((javaFlags & metaShiftOn) != 0) flags |= ModifierKeys::shiftModifier;
    if ((javaFlags & metaAltOn) != 0)   flags |= ModifierKeys::altModifier;
    if ((javaFlags & metaCtrlOn) != 0)  flags |= ModifierKeys::ctrlModifier;

    return flags;
}

//==============================================================================
class AndroidComponentPeer final : public ComponentPeer,
                                   private ActivityLifecycleCallbacks
{
public:
    AndroidComponentPeer (Component& comp, int windowStyleFlags, void* nativeViewHandle)
        : ComponentPeer (comp, windowStyleFlags)
    {
        auto* env = getEnv();

        // NB: must not put this in the initialiser list, as it invokes a callback,
        // which will fail if the peer is only half-constructed.
        view = GlobalRef (LocalRef<jobject> (env->NewObject (ComponentPeerView, ComponentPeerView.create,
                                                             getAppContext().get(), (jboolean) component.isOpaque(),
                                                             (jlong) this)));

        userDidSupplyParent = nativeViewHandle != nullptr;

        if (userDidSupplyParent)
        {
            // we don't know if the user is holding on to a local ref to this, so
            // explicitly create a new one
            LocalRef<jobject> nativeView { env->NewLocalRef (static_cast<jobject> (nativeViewHandle)) };

            if (env->IsInstanceOf (nativeView.get(), AndroidActivity))
            {
                viewGroup = GlobalRef (nativeView);
                env->CallVoidMethod (viewGroup.get(), AndroidActivity.setContentView, view.get());
            }
            else if (env->IsInstanceOf (nativeView.get(), AndroidViewGroup))
            {
                viewGroup = GlobalRef (nativeView);
                LocalRef<jobject> layoutParams (env->NewObject (AndroidLayoutParams, AndroidLayoutParams.create, -2, -2));

                env->CallVoidMethod (view.get(), AndroidView.setLayoutParams, layoutParams.get());
                env->CallVoidMethod ((jobject) viewGroup.get(), AndroidViewGroup.addView, view.get());
            }
            else
            {
                // the native handle you passed as a second argument to Component::addToDesktop must
                // either be an Activity or a ViewGroup
                jassertfalse;
            }
        }
        else
        {
            LocalRef viewLayoutParams { env->NewObject (AndroidLayoutParams, AndroidLayoutParams.create, -2, -2) };
            env->CallVoidMethod (view.get(), AndroidView.setLayoutParams, viewLayoutParams.get());

            const auto rawPeerBounds = detail::ComponentHelpers::localPositionToRawPeerPos (comp, comp.getBoundsInParent().toFloat());
            const auto physicalBounds = Rectangle { detail::ScalingHelpers::convertLogicalScreenPointToPhysical (rawPeerBounds.getTopLeft()),
                                                    detail::ScalingHelpers::convertLogicalScreenPointToPhysical (rawPeerBounds.getBottomRight()) }.toNearestInt();

            view.callVoidMethod (AndroidView.layout,
                                 physicalBounds.getX(), physicalBounds.getY(), physicalBounds.getRight(), physicalBounds.getBottom());

            LocalRef windowLayoutParams { env->NewObject (AndroidWindowManagerLayoutParams,
                                                          AndroidWindowManagerLayoutParams.createDefault) };

            if (Desktop::getInstance().getKioskModeComponent() != nullptr)
                refreshSystemBarsAndSetHidden (true);

            setUpLayoutParams (env, windowLayoutParams, physicalBounds);

            auto activity = getCurrentOrMainActivity();

            const LocalRef window { env->CallObjectMethod (activity, AndroidActivity.getWindow) };
            activityWindow = GlobalRef { window };
            const LocalRef attributes { env->CallObjectMethod (window, AndroidWindow.getAttributes) };

            static constexpr auto SOFT_INPUT_ADJUST_RESIZE = 0x10;
            env->SetIntField (attributes, AndroidWindowManagerLayoutParams.softInputMode, SOFT_INPUT_ADJUST_RESIZE);

            enableLayoutInCutout (env, attributes);

            // There's not much use for an action bar if we're only drawing JUCE content into the window
            if (const LocalRef actionBar { env->CallObjectMethod (activity, AndroidActivity.getActionBar) })
                env->CallVoidMethod (actionBar, AndroidActionBar.hide);

            auto flags = env->GetIntField (windowLayoutParams, AndroidWindowManagerLayoutParams.flags);
            flags |= FLAG_NOT_FOCUSABLE;
            env->SetIntField (windowLayoutParams, AndroidWindowManagerLayoutParams.flags, flags);

            viewGroup = GlobalRef { LocalRef { env->CallObjectMethod (activity, AndroidActivity.getWindowManager) } };
            env->CallVoidMethod (viewGroup, AndroidViewManager.addView, view.get(), windowLayoutParams.get());

            // It *seems* as though adding a new focusable window will cause the system UI to show
            // if previously hidden, even if the new window also wants the system UI to be hidden.
            // Setting the focusable flag after first adding the window stops the system UI from
            // reappearing. I don't know why this works!
            env->SetIntField (windowLayoutParams, AndroidWindowManagerLayoutParams.flags, flags & ~FLAG_NOT_FOCUSABLE);
            env->CallVoidMethod (viewGroup, AndroidViewManager.updateViewLayout, view.get(), windowLayoutParams.get());
        }

        auto activity = getCurrentOrMainActivity();

        const LocalRef window { env->CallObjectMethod (activity, AndroidActivity.getWindow) };
        const LocalRef decorView { env->CallObjectMethod (window, AndroidWindow.getDecorView) };
        const auto listener = CreateJavaInterface (new ViewWindowInsetsListener,
                                                   "android/view/View$OnApplyWindowInsetsListener");
        env->CallVoidMethod (decorView,
                             AndroidView.setOnApplyWindowInsetsListener,
                             listener.get());

        if (isFocused())
            handleFocusGain();
    }

    ~AndroidComponentPeer() override
    {
        auto* env = getEnv();

        auto activity = getCurrentOrMainActivity();

        const LocalRef window { env->CallObjectMethod (activity, AndroidActivity.getWindow) };
        const LocalRef decorView { env->CallObjectMethod (window, AndroidWindow.getDecorView) };

        env->CallVoidMethod (decorView, AndroidView.setOnApplyWindowInsetsListener, (jobject) nullptr);

        env->CallVoidMethod (view, ComponentPeerView.clear);
        frontWindow = nullptr;

        removeView();
        setSystemBarsTransparent();
    }

    static void removeViewFromActivity (jobject localView)
    {
        if (localView == nullptr)
            return;

        auto* env = getEnv();

        if (LocalRef<jobject> parent { env->CallObjectMethod (localView, AndroidView.getParent) })
            env->CallVoidMethod (parent, AndroidViewGroup.removeView, localView);
    }

    void removeView()
    {
        auto* env = getEnv();

        if (userDidSupplyParent)
        {
            if (env->IsInstanceOf (viewGroup, AndroidActivity))
            {
                removeViewFromActivity (view);
                return;
            }

            if (env->IsInstanceOf (viewGroup, AndroidViewGroup))
            {
                env->CallVoidMethod (viewGroup, AndroidViewGroup.removeView, view.get());
                return;
            }

            // The parent was not an activity or view group?
            jassertfalse;
            return;
        }

        if (fullScreen)
        {
            removeViewFromActivity (view);
            return;
        }

        if (env->IsInstanceOf (viewGroup, AndroidWindowManager))
        {
            env->CallVoidMethod (viewGroup, AndroidWindowManager.removeViewImmediate, view.get());
            return;
        }

        // The view's owner didn't have the expected type!
        jassertfalse;
    }

    void* getNativeHandle() const override
    {
        return (void*) view.get();
    }

    void setVisible (bool shouldBeVisible) override
    {
        GlobalRef localView (view);

        callOnMessageThread ([localView, shouldBeVisible]
        {
            localView.callVoidMethod (ComponentPeerView.setVisible, shouldBeVisible);
        });
    }

    void setTitle (const String& title) override
    {
        view.callVoidMethod (ComponentPeerView.setViewName, javaString (title).get());
    }

    void setBounds (const Rectangle<int>& userRect, bool isNowFullScreen) override
    {
        auto bounds = Rectangle { detail::ScalingHelpers::convertLogicalScreenPointToPhysical (userRect.getTopLeft().toFloat()),
                                  detail::ScalingHelpers::convertLogicalScreenPointToPhysical (userRect.getBottomRight().toFloat()) }.toNearestInt();

        if (MessageManager::getInstance()->isThisTheMessageThread())
        {
            auto* env = getEnv();

            if (fullScreen != isNowFullScreen && ! userDidSupplyParent)
            {
                removeView();

                fullScreen = isNowFullScreen;

                LocalRef windowLayoutParams { env->NewObject (AndroidWindowManagerLayoutParams,
                                                              AndroidWindowManagerLayoutParams.createDefault) };

                setUpLayoutParams (env, windowLayoutParams.get(), bounds);

                if (isNowFullScreen)
                {
                    if (auto activity = getCurrentOrMainActivity())
                        env->CallVoidMethod (activity, AndroidActivity.addContentView, view.get(), windowLayoutParams.get());
                }
                else if (env->IsInstanceOf (viewGroup, AndroidViewManager))
                {
                    env->CallVoidMethod (viewGroup.get(),
                                         AndroidViewManager.addView,
                                         view.get(),
                                         windowLayoutParams.get());
                }
                else
                {
                    // Not fullscreen but the viewgroup isn't a viewmanager/windowmanager instance
                    jassertfalse;
                }

                refreshSystemBarsAndSetHidden (navBarsHidden);
            }
            else if (! fullScreen)
            {
                if (viewGroup != nullptr && ! userDidSupplyParent)
                {
                    LocalRef windowLayoutParams { env->NewObject (AndroidWindowManagerLayoutParams,
                                                                  AndroidWindowManagerLayoutParams.createDefault) };

                    setUpLayoutParams (env, windowLayoutParams.get(), bounds);

                    env->CallVoidMethod (viewGroup.get(),
                                         AndroidViewManager.updateViewLayout,
                                         view.get(),
                                         windowLayoutParams.get());

                    refreshSystemBarsAndSetHidden (navBarsHidden);
                }
                else
                {
                    view.callVoidMethod (AndroidView.layout,
                                         bounds.getX(),
                                         bounds.getY(),
                                         bounds.getRight(),
                                         bounds.getBottom());

                }
            }

            fullScreen = isNowFullScreen;
        }
        else
        {
            GlobalRef localView (view);

            MessageManager::callAsync ([localView, bounds]
            {
                localView.callVoidMethod (AndroidView.layout,
                                          bounds.getX(), bounds.getY(), bounds.getRight(), bounds.getBottom());
            });
        }
    }

    Rectangle<int> getBounds() const override
    {
        const Rectangle bounds (view.callIntMethod (AndroidView.getLeft),
                                view.callIntMethod (AndroidView.getTop),
                                view.callIntMethod (AndroidView.getWidth),
                                view.callIntMethod (AndroidView.getHeight));

        const auto result = Rectangle { detail::ScalingHelpers::convertPhysicalScreenPointToLogical (bounds.getTopLeft().toFloat()),
                                        detail::ScalingHelpers::convertPhysicalScreenPointToLogical (bounds.getBottomRight().toFloat()) }.toNearestInt();
        return result;
    }

    void handleScreenSizeChange() override
    {
        ComponentPeer::handleScreenSizeChange();

        if (isFullScreen())
            setFullScreen (true);
    }

    Point<int> getScreenPosition() const
    {
        const auto physical = getViewLocationOnScreen (getEnv(), view.get());
        return detail::ScalingHelpers::convertPhysicalScreenPointToLogical (physical.toFloat()).roundToInt();
    }

    Point<float> localToGlobal (Point<float> relativePosition) override
    {
        return relativePosition + (getScreenPosition().toFloat());
    }

    using ComponentPeer::localToGlobal;

    Point<float> globalToLocal (Point<float> screenPosition) override
    {
        return screenPosition - (getScreenPosition().toFloat());
    }

    using ComponentPeer::globalToLocal;

    void setMinimised (bool /*shouldBeMinimised*/) override
    {
        // n/a
    }

    bool isMinimised() const override
    {
        return false;
    }

    bool isShowing() const override
    {
        return true;
    }

    void setFullScreen (bool shouldBeFullScreen) override
    {
        refreshSystemBarsAndSetHidden (shouldNavBarsBeHidden (shouldBeFullScreen));

        auto newBounds = std::invoke ([&]
        {
            // Even if we're "fullscreen", Android might be displaying our app in a split-screen
            // mode. We treat fullscreen mode as just filling the extent of the window provided for
            // us.
            if (shouldBeFullScreen)
                if (auto* display = Desktop::getInstance().getDisplays().getPrimaryDisplay())
                    return display->userBounds.getSmallestIntegerContainer();

            return lastNonFullscreenBounds.isEmpty() ? getBounds() : lastNonFullscreenBounds;
        });

        if (! newBounds.isEmpty())
            setBounds (newBounds, shouldBeFullScreen);

        component.repaint();
    }

    bool isFullScreen() const override
    {
        return fullScreen;
    }

    void setIcon (const Image& /*newIcon*/) override
    {
        // n/a
    }

    bool contains (Point<int> localPos, bool) const override
    {
        const auto scaled = detail::ComponentHelpers::rawPeerPositionToLocal (component, localPos);
        return component.getLocalBounds().contains (scaled);
    }

    OptionalBorderSize getFrameSizeIfPresent() const override
    {
        // TODO
        return {};
    }

    BorderSize<int> getFrameSize() const override
    {
        // TODO
        return {};
    }

    bool setAlwaysOnTop (bool /*alwaysOnTop*/) override
    {
        // TODO
        return false;
    }

    void toFront (bool makeActive) override
    {
        // Avoid calling bringToFront excessively: it's very slow
        if (frontWindow != this)
        {
            view.callVoidMethod (AndroidView.bringToFront);
            frontWindow = this;
        }

        if (makeActive)
            grabFocus();

        handleBroughtToFront();
    }

    void toBehind (ComponentPeer*) override
    {
        // TODO
    }

    //==============================================================================
    void handleMouseDownCallback (int index, Point<float> sysPos, int64 time)
    {
        lastMousePos = detail::ScalingHelpers::convertPhysicalScreenPointToLogical (sysPos);
        auto pos = globalToLocal (lastMousePos);

        // this forces a mouse-enter/up event, in case for some reason we didn't get a mouse-up before
        handleMouseEvent (MouseInputSource::InputSourceType::touch,
                          pos,
                          ModifierKeys::currentModifiers.withoutMouseButtons(),
                          MouseInputSource::defaultPressure,
                          MouseInputSource::defaultOrientation,
                          time,
                          {},
                          index);

        if (isValidPeer (this))
            handleMouseDragCallback (index, sysPos, time);
    }

    void handleMouseDragCallback (int index, Point<float> sysPos, int64 time)
    {
        lastMousePos = detail::ScalingHelpers::convertPhysicalScreenPointToLogical (sysPos);
        auto pos = globalToLocal (lastMousePos);

        jassert (index < 64);
        touchesDown = (touchesDown | (1 << (index & 63)));

        ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withoutMouseButtons().withFlags (ModifierKeys::leftButtonModifier);

        handleMouseEvent (MouseInputSource::InputSourceType::touch,
                          pos,
                          ModifierKeys::currentModifiers.withoutMouseButtons().withFlags (ModifierKeys::leftButtonModifier),
                          MouseInputSource::defaultPressure,
                          MouseInputSource::defaultOrientation,
                          time,
                          {},
                          index);
    }

    void handleMouseUpCallback (int index, Point<float> sysPos, int64 time)
    {
        lastMousePos = detail::ScalingHelpers::convertPhysicalScreenPointToLogical (sysPos);
        auto pos = globalToLocal (lastMousePos);

        jassert (index < 64);
        touchesDown = (touchesDown & ~(1 << (index & 63)));

        if (touchesDown == 0)
            ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withoutMouseButtons();

        WeakReference self { this };

        handleMouseEvent (MouseInputSource::InputSourceType::touch,
                          pos,
                          ModifierKeys::currentModifiers.withoutMouseButtons(),
                          MouseInputSource::defaultPressure,
                          MouseInputSource::defaultOrientation,
                          time,
                          {},
                          index);

        if (self == nullptr)
            return;

        handleMouseEvent (MouseInputSource::InputSourceType::touch,
                          MouseInputSource::offscreenMousePos,
                          ModifierKeys::currentModifiers.withoutMouseButtons(),
                          MouseInputSource::defaultPressure,
                          MouseInputSource::defaultOrientation,
                          time,
                          {},
                          index);
    }

    void handleAccessibilityHoverCallback (int command, Point<float> sysPos, int64)
    {
        enum
        {
            TYPE_VIEW_HOVER_ENTER = 0x00000080,
            TYPE_VIEW_HOVER_EXIT  = 0x00000100,

            ACTION_HOVER_ENTER    = 0x00000009,
            ACTION_HOVER_MOVE     = 0x00000007,
            ACTION_HOVER_EXIT     = 0x0000000a
        };

        if (auto* topHandler = component.getAccessibilityHandler())
        {
            const auto rawPeerPos = detail::ScalingHelpers::convertPhysicalScreenPointToLogical (sysPos);
            const auto localPos = detail::ComponentHelpers::rawPeerPositionToLocal (component, rawPeerPos);

            if (auto* virtualHandler = topHandler->getChildAt (localPos.roundToInt()))
            {
                switch (command)
                {
                    case ACTION_HOVER_ENTER:
                    case ACTION_HOVER_MOVE:
                        AccessibilityNativeHandle::sendAccessibilityEventImpl (*virtualHandler, TYPE_VIEW_HOVER_ENTER, 0);
                        break;

                    case ACTION_HOVER_EXIT:
                        AccessibilityNativeHandle::sendAccessibilityEventImpl (*virtualHandler, TYPE_VIEW_HOVER_EXIT, 0);
                        break;
                }
            }
        }
    }

    static bool handleKeyDownCallback (JNIEnv*, AndroidComponentPeer& t, int k, int kc, int kbFlags)
    {
        ModifierKeys::currentModifiers = ModifierKeys::currentModifiers.withOnlyMouseButtons()
                                                                       .withFlags (translateAndroidKeyboardFlags (kbFlags));
        return t.handleKeyPress (translateAndroidKeyCode (k), static_cast<juce_wchar> (kc));
    }

    static void handleKeyUpCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t, [[maybe_unused]] int k, [[maybe_unused]] int kc)
    {
    }

    static void handleBackButtonCallback (JNIEnv* env, AndroidComponentPeer& t)
    {
        bool handled = false;

        if (auto* app = JUCEApplicationBase::getInstance())
            handled = app->backButtonPressed();

        if (t.isKioskModeComponent())
            t.refreshSystemBarsAndSetHidden (t.navBarsHidden);

        if (! handled)
        {
            auto activity = getCurrentActivity();

            if (activity != nullptr)
            {
                if (const auto finishMethod = AndroidActivity.finish)
                    env->CallVoidMethod (activity.get(), finishMethod);
            }
        }
    }

    static void handleKeyboardHiddenCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t)
    {
        Component::unfocusAllComponents();
    }

    static void handleAppPausedCallback (JNIEnv*, [[maybe_unused]] AndroidComponentPeer& t) {}

    static void handleAppResumedCallback (JNIEnv*, AndroidComponentPeer& t)
    {
        if (t.isKioskModeComponent())
            t.refreshSystemBarsAndSetHidden (t.navBarsHidden);
    }

    static jlong handleGetFocusedTextInputTargetCallback (JNIEnv*, AndroidComponentPeer& t)
    {
        return reinterpret_cast<jlong> (t.findCurrentTextInputTarget());
    }

    static void handleMovedOrResizedCallback (JNIEnv*, AndroidComponentPeer& t)
    {
        t.handleMovedOrResized();
    }

    //==============================================================================
    AccessibilityNativeHandle* getNativeHandleForViewId (jint virtualViewId) const
    {
        if (auto* handler = (virtualViewId == HOST_VIEW_ID
                                 ? component.getAccessibilityHandler()
                                 : AccessibilityNativeHandle::getAccessibilityHandlerForVirtualViewId (virtualViewId)))
        {
            return handler->getNativeImplementation();
        }

        return nullptr;
    }

    static jobject getNativeViewCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId)
    {
        if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
            return handle->getNativeView (virtualViewId);

        return nullptr;
    }

    static jboolean populateAccessibilityNodeInfoCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId, jobject info)
    {
        if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
        {
            handle->populateNodeInfo (info, virtualViewId);
            return true;
        }

        return false;
    }

    static jboolean handlePerformActionCallback (JNIEnv*, const AndroidComponentPeer& t, jint virtualViewId, jint action, jobject arguments)
    {
        if (auto* handle = t.getNativeHandleForViewId (virtualViewId))
            return handle->performAction (action, arguments);

        return false;
    }

    static jobject getFocusViewIdForHandler (JNIEnv* env, const AccessibilityHandler* handler)
    {
        if (handler != nullptr)
            return env->NewObject (JavaInteger,
                                   JavaInteger.constructor,
                                   handler->getNativeImplementation()->getVirtualViewId());

        return nullptr;
    }

    static jobject getInputFocusViewIdCallback (JNIEnv* env, AndroidComponentPeer& t)
    {
        if (auto* comp = dynamic_cast<Component*> (t.findCurrentTextInputTarget()))
            return getFocusViewIdForHandler (env, comp->getAccessibilityHandler());

        return nullptr;
    }

    static jobject getAccessibilityFocusViewIdCallback (JNIEnv* env, const AndroidComponentPeer& t)
    {
        if (auto* handler = t.component.getAccessibilityHandler())
        {
            if (auto* modal = Component::getCurrentlyModalComponent())
            {
                if (! t.component.isParentOf (modal)
                     && t.component.isCurrentlyBlockedByAnotherModalComponent())
                {
                    if (auto* modalHandler = modal->getAccessibilityHandler())
                    {
                        if (auto* focusChild = modalHandler->getChildFocus())
                            return getFocusViewIdForHandler (env, focusChild);

                        return getFocusViewIdForHandler (env, modalHandler);
                    }
                }
            }

            if (auto* focusChild = handler->getChildFocus())
                return getFocusViewIdForHandler (env, focusChild);
        }

        return nullptr;
    }

    //==============================================================================
    bool isFocused() const override
    {
        if (view != nullptr)
            return view.callBooleanMethod (AndroidView.hasFocus);

        return false;
    }

    void grabFocus() override
    {
        if (view != nullptr)
            view.callBooleanMethod (AndroidView.requestFocus);
    }

    static void handleFocusChangeCallback (JNIEnv*, AndroidComponentPeer& t, bool hasFocus)
    {
        if (t.isFullScreen())
            t.setFullScreen (true);

        if (hasFocus)
            t.handleFocusGain();
        else
            t.handleFocusLoss();
    }

    void textInputRequired (Point<int>, TextInputTarget& target) override
    {
        const auto region = target.getHighlightedRegion();
        view.callVoidMethod (ComponentPeerView.showKeyboard,
                             static_cast<jint> (target.getKeyboardType()),
                             static_cast<jint> (region.getStart()),
                             static_cast<jint> (region.getEnd()));
    }

    void closeInputMethodContext() override
    {
        getEnv()->CallVoidMethod (view, ComponentPeerView.closeInputMethodContext);
    }

    void dismissPendingTextInput() override
    {
        closeInputMethodContext();

        view.callVoidMethod (ComponentPeerView.hideKeyboard);
    }

    //==============================================================================
    static void handleDoFrameCallback (JNIEnv*, AndroidComponentPeer& t, [[maybe_unused]] jlong frameTimeNanos)
    {
        const auto timestampSec = (double) frameTimeNanos / (double) 1'000'000'000;
        t.callVBlankListeners (timestampSec);
    }

    static void handlePaintCallback (JNIEnv* env, AndroidComponentPeer& t, jobject canvas, jobject paint)
    {
        LocalRef<jobject> rect { env->CallObjectMethod (canvas, AndroidCanvas.getClipBounds) };
        auto left   = env->GetIntField (rect, AndroidRect.left);
        auto top    = env->GetIntField (rect, AndroidRect.top);
        auto right  = env->GetIntField (rect, AndroidRect.right);
        auto bottom = env->GetIntField (rect, AndroidRect.bottom);

        auto clip = Rectangle<int>::leftTopRightBottom (left, top, right, bottom);

        if (clip.isEmpty())
            return;

        auto sizeNeeded = clip.getWidth() * clip.getHeight();

        if (t.sizeAllocated < sizeNeeded)
        {
            t.buffer.clear();
            t.sizeAllocated = sizeNeeded;
            t.buffer = GlobalRef (LocalRef<jobject> ((jobject) env->NewIntArray (sizeNeeded)));
        }

        if (jint* dest = env->GetIntArrayElements ((jintArray) t.buffer.get(), nullptr))
        {
            {
                Image temp (new PreallocatedImage (clip.getWidth(), clip.getHeight(),
                                                   dest, ! t.component.isOpaque()));

                {
                    LowLevelGraphicsSoftwareRenderer g (temp);
                    g.setOrigin (-clip.getPosition());
                    const auto scale = Desktop::getInstance().getDisplays().getPrimaryDisplay()->scale
                                     / Desktop::getInstance().getGlobalScaleFactor();
                    g.addTransform (AffineTransform::scale ((float) scale));
                    t.handlePaint (g);
                }
            }

            env->ReleaseIntArrayElements ((jintArray) t.buffer.get(), dest, 0);

            env->CallVoidMethod (canvas, AndroidCanvas.drawBitmap, (jintArray) t.buffer.get(), 0, clip.getWidth(),
                                 (jfloat) clip.getX(), (jfloat) clip.getY(),
                                 clip.getWidth(), clip.getHeight(), true, paint);
        }
    }

    void repaint (const Rectangle<int>& userArea) override
    {
        const auto area = Rectangle { detail::ScalingHelpers::convertLogicalScreenPointToPhysical (userArea.getTopLeft().toFloat()),
                                      detail::ScalingHelpers::convertLogicalScreenPointToPhysical (userArea.getBottomRight().toFloat()) }.toNearestInt();

        GlobalRef localView (view);

        callOnMessageThread ([area, localView]
        {
            localView.callVoidMethod (AndroidView.invalidate,
                                      area.getX(), area.getY(), area.getRight(), area.getBottom());
        });
    }

    void performAnyPendingRepaintsNow() override
    {
        // TODO
    }

    void setAlpha (float /*newAlpha*/) override
    {
        // TODO
    }

    StringArray getAvailableRenderingEngines() override
    {
        return StringArray ("Software Renderer");
    }

    void appStyleChanged() override
    {
        JUCE_ASSERT_MESSAGE_THREAD
        refreshSystemBarsAndSetHidden (navBarsHidden);
    }

    //==============================================================================
    inline static Point<float> lastMousePos{};
    inline static int64 touchesDown = 0;

    //==============================================================================
    struct StartupActivityCallbackListener final : public ActivityLifecycleCallbacks
    {
        void onActivityStarted (jobject /*activity*/) override
        {
            forceDisplayUpdate();

            AndroidComponentPeer::startupActivityCallbackListener.reset();
        }

        ActivityLifecycleCallbackForwarder forwarder { GlobalRef { getAppContext() }, this };
    };

    class MainActivityWindowLayoutListener : public AndroidInterfaceImplementer
    {
    private:
        jobject invoke (jobject proxy, jobject method, jobjectArray args) override
        {
            auto* env = getEnv();
            auto methodName = juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));

            if (methodName == "onLayoutChange")
            {
                jassert (env->GetArrayLength (args) == 9);

                forceDisplayUpdate();

                return nullptr;
            }

            // invoke base class
            return AndroidInterfaceImplementer::invoke (proxy, method, args);
        }
    };

private:
    template <auto Member>
    static void mouseCallbackWrapper (JNIEnv*, AndroidComponentPeer& t, jint i, jfloat x, jfloat y, jlong time) { return (t.*Member) (i, Point<float> { x, y }, time); }

    static Point<int> getViewLocationOnScreen (JNIEnv* env, jobject view)
    {
        if (view == nullptr)
            return {};

        LocalRef position { env->NewIntArray (2) };
        env->CallVoidMethod (view, AndroidView.getLocationOnScreen, position.get());

        jint* const screenPosition = env->GetIntArrayElements (position.get(), nullptr);
        Point<int> pos (screenPosition[0], screenPosition[1]);
        env->ReleaseIntArrayElements (position.get(), screenPosition, 0);

        return pos;
    }

    static Point<int> getActivityLocationOnScreen (JNIEnv* env, jobject activity)
    {
        if (activity == nullptr)
            return {};

        LocalRef mainWindow { env->CallObjectMethod (activity, AndroidActivity.getWindow) };

        if (mainWindow == nullptr)
            return {};

        return getViewLocationOnScreen (env, env->CallObjectMethod (mainWindow, AndroidWindow.getDecorView));
    }

    static void enableLayoutInCutout (JNIEnv* env, jobject windowLayoutParams)
    {
        if (const auto fieldID = AndroidWindowManagerLayoutParams28.layoutInDisplayCutoutMode)
        {
            const jint layoutMode = getAndroidSDKVersion() >= 30
                                    ? LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
                                    : LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
            env->SetIntField (windowLayoutParams, fieldID, layoutMode);
        }
    }

    void setUpLayoutParams (JNIEnv* env, jobject layoutParams, Rectangle<int> bounds) const
    {
        constexpr jint MATCH_PARENT = -1;
        env->SetIntField (layoutParams, AndroidLayoutParams.width,  fullScreen ? MATCH_PARENT : bounds.getWidth());
        env->SetIntField (layoutParams, AndroidLayoutParams.height, fullScreen ? MATCH_PARENT : bounds.getHeight());

        if (! env->IsInstanceOf (layoutParams, AndroidWindowManagerLayoutParams))
            return;

        // When userDidSupplyParent is false, we're laying out the window within the bounds
        // provided to the activity, and the userRect is in global screen space.
        // For fullscreen windows, it's easiest to ask Android to size the view
        // appropriately by matching the parent view.
        // For non-fullscreen windows, despite FLAG_LAYOUT_IN_SCREEN below, the view
        // coordinates here appear to be interpreted as relative to the bounds of the
        // activity's main window, rather than relative to the display.
        // This matters when the app window's top-left isn't flush with the top-left of
        // the display, which frequently happens in split-screen mode.

        const auto posInActivity = fullScreen
                                 ? Point<int>{}
                                 : bounds.getPosition() - getActivityLocationOnScreen (env, getMainActivity());

        env->SetIntField (layoutParams, AndroidWindowManagerLayoutParams.x, posInActivity.x);
        env->SetIntField (layoutParams, AndroidWindowManagerLayoutParams.y, posInActivity.y);

        env->SetIntField (layoutParams, AndroidWindowManagerLayoutParams.gravity, GRAVITY_TOP | GRAVITY_LEFT);

        enableLayoutInCutout (env, layoutParams);

        if (const auto fieldID = AndroidWindowManagerLayoutParams28.layoutInDisplayCutoutMode)
        {
            const jint layoutMode = getAndroidSDKVersion() >= 30
                                  ? LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
                                  : LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
            env->SetIntField (layoutParams, fieldID, layoutMode);
        }

        // In split-screen mode these flags seem to go missing, so make sure they're still
        // set. Without these, the navigation bar insets and background may display incorrectly.
        auto flags = env->GetIntField (layoutParams, AndroidWindowManagerLayoutParams.flags);
        flags |= FLAG_NOT_TOUCH_MODAL
                 | FLAG_LAYOUT_IN_SCREEN
                 | FLAG_LAYOUT_NO_LIMITS
                 | FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS;

        if (getAndroidSDKVersion() >= 30)
        {
            env->CallVoidMethod (layoutParams, AndroidWindowManagerLayoutParams30.setFitInsetsSides, (jint) 0);
            env->CallVoidMethod (layoutParams, AndroidWindowManagerLayoutParams30.setFitInsetsIgnoringVisibility, (jboolean) true);
        }

        env->SetIntField (layoutParams, AndroidWindowManagerLayoutParams.flags, flags);

        env->SetIntField (layoutParams,
                          AndroidWindowManagerLayoutParams.format,
                          component.isOpaque() ? PIXEL_FORMAT_OPAQUE : PIXEL_FORMAT_TRANSPARENT);
        env->SetIntField (layoutParams, AndroidWindowManagerLayoutParams.type, TYPE_APPLICATION);

        static constexpr auto SOFT_INPUT_ADJUST_RESIZE = 0x10;
        env->SetIntField (layoutParams, AndroidWindowManagerLayoutParams.softInputMode, SOFT_INPUT_ADJUST_RESIZE);
    }

    //==============================================================================
   #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
    METHOD   (create,                           "<init>",                        "(Landroid/content/Context;ZJ)V") \
    METHOD   (clear,                            "clear",                         "()V") \
    METHOD   (setViewName,                      "setViewName",                   "(Ljava/lang/String;)V") \
    METHOD   (setVisible,                       "setVisible",                    "(Z)V") \
    METHOD   (isVisible,                        "isVisible",                     "()Z") \
    METHOD   (showKeyboard,                     "showKeyboard",                  "(III)V") \
    METHOD   (hideKeyboard,                     "hideKeyboard",                  "()V") \
    METHOD   (closeInputMethodContext,          "closeInputMethodContext",       "()V") \
    METHOD   (setSystemUiVisibilityCompat,      "setSystemUiVisibilityCompat",   "(Landroid/view/Window;ZZ)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleDoFrameCallback>,                    "handleDoFrame",                                    "(JJ)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handlePaintCallback>,                      "handlePaint",                                      "(JLandroid/graphics/Canvas;Landroid/graphics/Paint;)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyDownCallback>,                    "handleKeyDown",                                    "(JIII)Z") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyUpCallback>,                      "handleKeyUp",                                      "(JII)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleBackButtonCallback>,                 "handleBackButton",                                 "(J)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleKeyboardHiddenCallback>,             "handleKeyboardHidden",                             "(J)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleGetFocusedTextInputTargetCallback>,  "getFocusedTextInputTargetPointer",                 "(J)J") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleMovedOrResizedCallback>,             "viewSizeChanged",                                  "(J)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleFocusChangeCallback>,                "focusChanged",                                     "(JZ)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleAppPausedCallback>,                  "handleAppPaused",                                  "(J)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handleAppResumedCallback>,                 "handleAppResumed",                                 "(J)V")  \
    CALLBACK (generatedCallback<&AndroidComponentPeer::getNativeViewCallback>,                    "getNativeView",                                    "(JI)Landroid/view/View;") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::populateAccessibilityNodeInfoCallback>,    "populateAccessibilityNodeInfo",                    "(JILandroid/view/accessibility/AccessibilityNodeInfo;)Z") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::handlePerformActionCallback>,              "handlePerformAction",                              "(JIILandroid/os/Bundle;)Z") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::getInputFocusViewIdCallback>,              "getInputFocusViewId",                              "(J)Ljava/lang/Integer;") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::getAccessibilityFocusViewIdCallback>,      "getAccessibilityFocusViewId",                      "(J)Ljava/lang/Integer;") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetIsTextInputActive>,         "textInputTargetIsTextInputActive",                 "(J)Z") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetHighlightedRegionBegin>, "textInputTargetGetHighlightedRegionBegin",         "(J)I") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetHighlightedRegionEnd>,   "textInputTargetGetHighlightedRegionEnd",           "(J)I") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetSetHighlightedRegion>,      "textInputTargetSetHighlightedRegion",              "(JII)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetTextInRange>,            "textInputTargetGetTextInRange",                    "(JII)Ljava/lang/String;") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetInsertTextAtCaret>,         "textInputTargetInsertTextAtCaret",                 "(JLjava/lang/String;)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetCaretPosition>,          "textInputTargetGetCaretPosition",                  "(J)I") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetTotalNumChars>,          "textInputTargetGetTotalNumChars",                  "(J)I") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetCharIndexForPoint>,      "textInputTargetGetCharIndexForPoint",              "(JLandroid/graphics/Point;)I") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetGetKeyboardType>,           "textInputTargetGetKeyboardType",                   "(J)I") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::textInputTargetSetTemporaryUnderlining>,   "textInputTargetSetTemporaryUnderlining",           "(JLjava/util/List;)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseDownCallback>>,          "handleMouseDown",               "(JIFFJ)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseDragCallback>>,          "handleMouseDrag",               "(JIFFJ)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleMouseUpCallback>>,            "handleMouseUp",                 "(JIFFJ)V") \
    CALLBACK (generatedCallback<&AndroidComponentPeer::mouseCallbackWrapper<&AndroidComponentPeer::handleAccessibilityHoverCallback>>, "handleAccessibilityHover",      "(JIFFJ)V") \

    DECLARE_JNI_CLASS_WITH_BYTECODE (ComponentPeerView, "com/rmsl/juce/ComponentPeerView", 24, javaComponentPeerView)
   #undef JNI_CLASS_MEMBERS

    static jboolean textInputTargetIsTextInputActive (JNIEnv*, const TextInputTarget& t)
    {
        return t.isTextInputActive();
    }

    static jint textInputTargetGetHighlightedRegionBegin (JNIEnv*, const TextInputTarget& t)
    {
        return t.getHighlightedRegion().getStart();
    }

    static jint textInputTargetGetHighlightedRegionEnd (JNIEnv*, const TextInputTarget& t)
    {
        return t.getHighlightedRegion().getEnd();
    }

    static void textInputTargetSetHighlightedRegion (JNIEnv*, TextInputTarget& t, jint b, jint e)
    {
        t.setHighlightedRegion ({ b, e });
    }

    static jstring textInputTargetGetTextInRange (JNIEnv* env, const TextInputTarget& t, jint b, jint e)
    {
        return env->NewStringUTF (t.getTextInRange ({ b, e }).toUTF8());
    }

    static void textInputTargetInsertTextAtCaret (JNIEnv*, TextInputTarget& t, jstring text)
    {
        t.insertTextAtCaret (juceString (text));
    }

    static jint textInputTargetGetCaretPosition (JNIEnv*, const TextInputTarget& t)
    {
        return t.getCaretPosition();
    }

    static jint textInputTargetGetTotalNumChars (JNIEnv*, const TextInputTarget& t)
    {
        return t.getTotalNumChars();
    }

    static jint textInputTargetGetCharIndexForPoint (JNIEnv* env, const TextInputTarget& t, jobject point)
    {
        return t.getCharIndexForPoint ({ env->GetIntField (point, AndroidPoint.x),
                                         env->GetIntField (point, AndroidPoint.y) });
    }

    static jint textInputTargetGetKeyboardType (JNIEnv*, TextInputTarget& t)
    {
        return t.getKeyboardType();
    }

    static std::optional<Range<int>> getRangeFromPair (JNIEnv* env, jobject pair)
    {
        if (pair == nullptr)
            return {};

        const auto first  = env->GetObjectField (pair, AndroidPair.first);
        const auto second = env->GetObjectField (pair, AndroidPair.second);

        if (first == nullptr || second == nullptr)
            return {};

        const auto begin = env->CallIntMethod (first,  JavaInteger.intValue);
        const auto end   = env->CallIntMethod (second, JavaInteger.intValue);

        return Range<int> { begin, end };
    }

    static Array<Range<int>> javaListOfPairToArrayOfRange (JNIEnv* env, jobject list)
    {
        if (list == nullptr)
            return {};

        Array<Range<int>> result;

        for (jint i = 0; i < env->CallIntMethod (list, JavaList.size); ++i)
            if (const auto range = getRangeFromPair (env, env->CallObjectMethod (list, JavaList.get, i)))
                result.add (*range);

        return result;
    }

    static void textInputTargetSetTemporaryUnderlining (JNIEnv* env, TextInputTarget& t, jobject list)
    {
        t.setTemporaryUnderlining (javaListOfPairToArrayOfRange (env, list));
    }

    class ViewWindowInsetsListener final : public AndroidInterfaceImplementer
    {
    private:
        jobject onApplyWindowInsets (JNIEnv* env, LocalRef<jobject>, LocalRef<jobject> insets) const
        {
            forceDisplayUpdate();

            if (const auto fieldId = AndroidWindowInsets30.CONSUMED)
                return env->GetStaticObjectField (AndroidWindowInsets30, fieldId);

            auto* consumed = env->CallObjectMethod (insets, AndroidWindowInsets.consumeSystemWindowInsets);

            if (const auto fieldId = AndroidWindowInsets28.consumeDisplayCutout)
                return env->CallObjectMethod (consumed, fieldId);

            return consumed;
        }

        jobject invoke (jobject proxy, jobject method, jobjectArray args) override
        {
            auto* env = getEnv();
            auto methodName = juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));

            if (methodName == "onApplyWindowInsets")
            {
                jassert (env->GetArrayLength (args) == 2);

                return onApplyWindowInsets (env,
                                            LocalRef { env->GetObjectArrayElement (args, 0) },
                                            LocalRef { env->GetObjectArrayElement (args, 1) });
            }

            // invoke base class
            return AndroidInterfaceImplementer::invoke (proxy, method, args);
        }
    };

    //==============================================================================
    struct PreallocatedImage final : public ImagePixelData
    {
        PreallocatedImage (int width_, int height_, jint* data_, bool hasAlpha_)
            : ImagePixelData (Image::ARGB, width_, height_), data (data_), hasAlpha (hasAlpha_)
        {
            if (hasAlpha_)
                zeromem (data_, static_cast<size_t> (width * height) * sizeof (jint));
        }

        ~PreallocatedImage() override
        {
            if (hasAlpha)
            {
                auto pix = (PixelARGB*) data;

                for (int i = width * height; --i >= 0;)
                {
                    pix->unpremultiply();
                    ++pix;
                }
            }
        }

        std::unique_ptr<ImageType> createType() const override
        {
            return std::make_unique<SoftwareImageType>();
        }

        std::unique_ptr<LowLevelGraphicsContext> createLowLevelContext() override
        {
            return std::make_unique<LowLevelGraphicsSoftwareRenderer> (Image (this));
        }

        void initialiseBitmapData (Image::BitmapData& bm, int x, int y, Image::BitmapData::ReadWriteMode /*mode*/) override
        {
            bm.lineStride = width * static_cast<int> (sizeof (jint));
            bm.pixelStride = static_cast<int> (sizeof (jint));
            bm.pixelFormat = Image::ARGB;
            const auto offset = (size_t) x + (size_t) y * (size_t) width;
            bm.data = (uint8*) (data + offset);
            bm.size = sizeof (jint) * (((size_t) height * (size_t) width) - offset);
        }

        ImagePixelData::Ptr clone() override
        {
            auto s = new PreallocatedImage (width, height, nullptr, hasAlpha);
            s->allocatedData.malloc (sizeof (jint) * static_cast<size_t> (width * height));
            s->data = s->allocatedData;
            memcpy (s->data, data, sizeof (jint) * static_cast<size_t> (width * height));
            return s;
        }

    private:
        jint* data;
        HeapBlock<jint> allocatedData;
        bool hasAlpha;

        JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PreallocatedImage)
    };

    //==============================================================================
    bool isKioskModeComponent() const
    {
        if (auto* kiosk = Desktop::getInstance().getKioskModeComponent())
            return kiosk->getPeer() == this;

        return false;
    }

    bool shouldNavBarsBeHidden (bool shouldBeFullScreen) const
    {
        return (shouldBeFullScreen && isKioskModeComponent());
    }

    void refreshSystemBarsAndSetHidden (bool hidden)
    {
        // The system may show the bars again, e.g when navigating away from the app and
        // back again. Therefore, we should call setSystemUiVisibilityCompat each time to
        // ensure that the system bars get put back into the expected state.
        navBarsHidden = hidden;
        getEnv()->CallVoidMethod (view,
                                  ComponentPeerView.setSystemUiVisibilityCompat,
                                  activityWindow.get(),
                                  (jboolean) ! navBarsHidden,
                                  (jboolean) (getAppStyle() == Style::light));

        setSystemBarsTransparent();
    }

    void setSystemBarsTransparent()
    {
        if (activityWindow == nullptr)
            return;

        auto* env = getEnv();

        constexpr jint fullyTransparent = 0;
        env->CallVoidMethod (activityWindow, AndroidWindow.setStatusBarColor, fullyTransparent);
        env->CallVoidMethod (activityWindow, AndroidWindow.setNavigationBarColor, fullyTransparent);

        // This call makes interacting with a kiosk mode application impossible on Android 11.
        // After this call, any interaction with the app will result in a callback to
        // onApplyWindowInsets, which eventually calls this function again. As a consequence the
        // navigation bar is opened, immediately dismissed, and user inputs never reach our app.
        if (getAndroidSDKVersion() > 30 || Desktop::getInstance().getKioskModeComponent() == nullptr)
            env->CallVoidMethod (activityWindow, AndroidWindow.setFlags, FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS, FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

        if (getAndroidSDKVersion() >= 29)
            env->CallVoidMethod (activityWindow, AndroidWindow29.setNavigationBarContrastEnforced, (jboolean) false);
    }

    template <typename Callback>
    static void callOnMessageThread (Callback&& callback)
    {
        if (MessageManager::getInstance()->isThisTheMessageThread())
            callback();
        else
            MessageManager::callAsync (std::forward<Callback> (callback));
    }

    //==============================================================================
    friend class Displays;
    inline static AndroidComponentPeer* frontWindow = nullptr;
    inline static std::optional<StartupActivityCallbackListener> startupActivityCallbackListener;

    static constexpr jint GRAVITY_LEFT = 0x3, GRAVITY_TOP = 0x30;
    static constexpr jint TYPE_APPLICATION = 0x2;
    static constexpr jint TYPE_APPLICATION_PANEL = 1000;
    static constexpr jint FLAG_NOT_TOUCH_MODAL = 0x20, FLAG_LAYOUT_IN_SCREEN = 0x100;
    static constexpr jint FLAG_LAYOUT_NO_LIMITS = 0x200;
    static constexpr jint FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS = (jint) 0x80000000;
    static constexpr jint PIXEL_FORMAT_OPAQUE = -1, PIXEL_FORMAT_TRANSPARENT = -2;
    static constexpr jint LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS = 0x3;
    static constexpr jint LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES = 0x1;

    GlobalRef view, viewGroup, buffer, activityWindow;
    bool userDidSupplyParent = false, fullScreen = false, navBarsHidden = false;
    int sizeAllocated = 0;

    //==============================================================================
    JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidComponentPeer)
    JUCE_DECLARE_WEAK_REFERENCEABLE (AndroidComponentPeer)
};

//==============================================================================
ComponentPeer* Component::createNewPeer (int styleFlags, void* nativeWindow)
{
    return new AndroidComponentPeer (*this, styleFlags, nativeWindow);
}

//==============================================================================
bool Desktop::canUseSemiTransparentWindows() noexcept
{
    return true;
}

class Desktop::NativeDarkModeChangeDetectorImpl  : private ActivityLifecycleCallbacks
{
public:
    NativeDarkModeChangeDetectorImpl() = default;

    bool isDarkModeEnabled() const noexcept  { return darkModeEnabled; }

private:
    void onActivityStarted (jobject) override
    {
        updateMode();
    }

    void onActivityConfigurationChanged (jobject) override
    {
        updateMode();
    }

    void updateMode()
    {
        const auto current = getDarkModeSetting();

        if (std::exchange (darkModeEnabled, current) != current)
            Desktop::getInstance().darkModeChanged();
    }

    static bool getDarkModeSetting()
    {
        auto* env = getEnv();

        const LocalRef<jobject> resources (env->CallObjectMethod (getAppContext().get(), AndroidContext.getResources));
        const LocalRef<jobject> configuration (env->CallObjectMethod (resources, AndroidResources.getConfiguration));

        const auto uiMode = env->GetIntField (configuration, AndroidConfiguration.uiMode);

        return ((uiMode & UI_MODE_NIGHT_MASK) == UI_MODE_NIGHT_YES);
    }

    static constexpr int UI_MODE_NIGHT_MASK      = 0x00000030,
                         UI_MODE_NIGHT_NO        = 0x00000010,
                         UI_MODE_NIGHT_UNDEFINED = 0x00000000,
                         UI_MODE_NIGHT_YES       = 0x00000020;

    bool darkModeEnabled = getDarkModeSetting();
    ActivityLifecycleCallbackForwarder forwarder { GlobalRef { getAppContext() }, this };

    //==============================================================================
    JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NativeDarkModeChangeDetectorImpl)
};

std::unique_ptr<Desktop::NativeDarkModeChangeDetectorImpl> Desktop::createNativeDarkModeChangeDetectorImpl()
{
    return std::make_unique<NativeDarkModeChangeDetectorImpl>();
}

bool Desktop::isDarkModeActive() const
{
    return nativeDarkModeChangeDetectorImpl->isDarkModeEnabled();
}

double Desktop::getDefaultMasterScale()
{
    return 1.0;
}

Desktop::DisplayOrientation Desktop::getCurrentOrientation() const
{
    enum
    {
        ROTATION_0   = 0,
        ROTATION_90  = 1,
        ROTATION_180 = 2,
        ROTATION_270 = 3
    };

    JNIEnv* env = getEnv();
    const auto windowServiceString = javaString ("window");

    LocalRef<jobject> windowManager { env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, windowServiceString.get()) };

    if (windowManager.get() != nullptr)
    {
        LocalRef<jobject> display { env->CallObjectMethod (windowManager, AndroidWindowManager.getDefaultDisplay) };

        if (display.get() != nullptr)
        {
            int rotation = env->CallIntMethod (display, AndroidDisplay.getRotation);

            switch (rotation)
            {
                case ROTATION_0:   return upright;
                case ROTATION_90:  return rotatedAntiClockwise;
                case ROTATION_180: return upsideDown;
                case ROTATION_270: return rotatedClockwise;
            }
        }
    }

    jassertfalse;
    return upright;
}

bool detail::MouseInputSourceList::addSource()
{
    addSource (sources.size(), MouseInputSource::InputSourceType::touch);
    return true;
}

bool detail::MouseInputSourceList::canUseTouch() const
{
    return true;
}

Point<float> MouseInputSource::getCurrentRawMousePosition()
{
    return AndroidComponentPeer::lastMousePos;
}

void MouseInputSource::setRawMousePosition (Point<float>)
{
    // not needed
}

//==============================================================================
bool KeyPress::isKeyCurrentlyDown (int /*keyCode*/)
{
    // TODO
    return false;
}

JUCE_API void JUCE_CALLTYPE Process::hide()
{
    auto* env = getEnv();
    auto currentActivity = getCurrentActivity();

    if (env->CallBooleanMethod (currentActivity.get(), AndroidActivity.moveTaskToBack, true) == 0)
    {
        GlobalRef intent (LocalRef<jobject> (env->NewObject (AndroidIntent, AndroidIntent.constructor)));
        env->CallObjectMethod (intent, AndroidIntent.setAction,   javaString ("android.intent.action.MAIN")  .get());
        env->CallObjectMethod (intent, AndroidIntent.addCategory, javaString ("android.intent.category.HOME").get());

        env->CallVoidMethod (currentActivity.get(), AndroidContext.startActivity, intent.get());
    }
}

//==============================================================================
// TODO
JUCE_API bool JUCE_CALLTYPE Process::isForegroundProcess() { return true; }
JUCE_API void JUCE_CALLTYPE Process::makeForegroundProcess() {}

//==============================================================================
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (show,                   "show",                 "()V") \
 METHOD (getWindow,              "getWindow",            "()Landroid/view/Window;")

DECLARE_JNI_CLASS (AndroidDialog, "android/app/Dialog")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (construct,                   "<init>",                 "(Landroid/content/Context;)V") \
 METHOD (create,                      "create",                 "()Landroid/app/AlertDialog;") \
 METHOD (setTitle,                    "setTitle",               "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;") \
 METHOD (setMessage,                  "setMessage",             "(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;") \
 METHOD (setCancelable,               "setCancelable",          "(Z)Landroid/app/AlertDialog$Builder;") \
 METHOD (setOnCancelListener,         "setOnCancelListener",    "(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;") \
 METHOD (setPositiveButton,           "setPositiveButton",      "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;") \
 METHOD (setNegativeButton,           "setNegativeButton",      "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;") \
 METHOD (setNeutralButton,            "setNeutralButton",       "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;")

DECLARE_JNI_CLASS (AndroidAlertDialogBuilder, "android/app/AlertDialog$Builder")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (dismiss,    "dismiss",  "()V")

DECLARE_JNI_CLASS (AndroidDialogInterface, "android/content/DialogInterface")
#undef JNI_CLASS_MEMBERS

#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \

DECLARE_JNI_CLASS (AndroidDialogOnClickListener, "android/content/DialogInterface$OnClickListener")
#undef JNI_CLASS_MEMBERS

//==============================================================================
class DialogListener final : public AndroidInterfaceImplementer
{
public:
    explicit DialogListener (std::function<void()> cb) : callback (std::move (cb)) {}

    jobject invoke (jobject proxy, jobject method, jobjectArray args) override
    {
        auto* env = getEnv();
        auto methodName = juceString ((jstring) env->CallObjectMethod (method, JavaMethod.getName));

        if (methodName == "onCancel" || methodName == "onClick")
        {
            LocalRef<jobject> dialog { env->GetObjectArrayElement (args, 0) };
            env->CallVoidMethod (dialog, AndroidDialogInterface.dismiss);

            NullCheckedInvocation::invoke (callback);

            return nullptr;
        }

        // invoke base class
        return AndroidInterfaceImplementer::invoke (proxy, method, args);
    }

private:
    std::function<void()> callback;
};

//==============================================================================
static bool androidScreenSaverEnabled = true;

void Desktop::setScreenSaverEnabled (bool shouldEnable)
{
    constexpr auto FLAG_KEEP_SCREEN_ON = 0x80;

    if (shouldEnable != androidScreenSaverEnabled)
    {
        LocalRef<jobject> activity (getMainActivity());

        if (activity != nullptr)
        {
            auto* env = getEnv();

            LocalRef<jobject> mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow));
            env->CallVoidMethod (mainWindow.get(), AndroidWindow.setFlags, shouldEnable ? 0 : FLAG_KEEP_SCREEN_ON, FLAG_KEEP_SCREEN_ON);
        }

        androidScreenSaverEnabled = shouldEnable;
    }
}

bool Desktop::isScreenSaverEnabled()
{
    return androidScreenSaverEnabled;
}

//==============================================================================
void Desktop::setKioskComponent (Component* kioskComp, bool enableOrDisable, [[maybe_unused]] bool allowMenusAndBars)
{
    if (AndroidComponentPeer* peer = dynamic_cast<AndroidComponentPeer*> (kioskComp->getPeer()))
        peer->setFullScreen (enableOrDisable);
    else
        jassertfalse; // (this should have been checked by the caller)
}

//==============================================================================
static jint getAndroidOrientationFlag (int orientations) noexcept
{
    enum
    {
        SCREEN_ORIENTATION_LANDSCAPE          = 0,
        SCREEN_ORIENTATION_PORTRAIT           = 1,
        SCREEN_ORIENTATION_USER               = 2,
        SCREEN_ORIENTATION_REVERSE_LANDSCAPE  = 8,
        SCREEN_ORIENTATION_REVERSE_PORTRAIT   = 9,
        SCREEN_ORIENTATION_USER_LANDSCAPE     = 11,
        SCREEN_ORIENTATION_USER_PORTRAIT      = 12,
    };

    switch (orientations)
    {
        case Desktop::upright:                                          return (jint) SCREEN_ORIENTATION_PORTRAIT;
        case Desktop::upsideDown:                                       return (jint) SCREEN_ORIENTATION_REVERSE_PORTRAIT;
        case Desktop::upright + Desktop::upsideDown:                    return (jint) SCREEN_ORIENTATION_USER_PORTRAIT;
        case Desktop::rotatedAntiClockwise:                             return (jint) SCREEN_ORIENTATION_LANDSCAPE;
        case Desktop::rotatedClockwise:                                 return (jint) SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
        case Desktop::rotatedClockwise + Desktop::rotatedAntiClockwise: return (jint) SCREEN_ORIENTATION_USER_LANDSCAPE;
        default:                                                        return (jint) SCREEN_ORIENTATION_USER;
    }
}

void Desktop::allowedOrientationsChanged()
{
    LocalRef<jobject> activity (getMainActivity());

    if (activity != nullptr)
        getEnv()->CallVoidMethod (activity.get(), AndroidActivity.setRequestedOrientation, getAndroidOrientationFlag (allowedOrientations));
}

//==============================================================================
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (create,          "<init>",         "()V") \
 FIELD  (density,         "density",        "F") \
 FIELD  (widthPixels,     "widthPixels",    "I") \
 FIELD  (heightPixels,    "heightPixels",   "I")

DECLARE_JNI_CLASS (AndroidDisplayMetrics, "android/util/DisplayMetrics")
#undef JNI_CLASS_MEMBERS

//==============================================================================
void Displays::findDisplays (const Desktop& desktop)
{
    auto* env = getEnv();

    const auto windowServiceString = javaString ("window");
    LocalRef<jobject> windowManager (env->CallObjectMethod (getAppContext(), AndroidContext.getSystemService, windowServiceString.get()));
    LocalRef<jobject> display (env->CallObjectMethod (windowManager, AndroidWindowManager.getDefaultDisplay));

    LocalRef<jobject> displayMetrics (env->NewObject (AndroidDisplayMetrics, AndroidDisplayMetrics.create));
    env->CallVoidMethod (display, AndroidDisplay17.getRealMetrics, displayMetrics.get());

    Display d;
    d.isMain = true;

    d.scale = env->GetFloatField (displayMetrics, AndroidDisplayMetrics.density);
    d.dpi = (d.scale * 160.f);
    d.scale *= desktop.getGlobalScaleFactor();

    d.physicalBounds = Rectangle (env->GetIntField (displayMetrics, AndroidDisplayMetrics.widthPixels),
                                  env->GetIntField (displayMetrics, AndroidDisplayMetrics.heightPixels));
    d.logicalBounds = d.physicalBounds.toFloat() / d.scale;

    LocalRef activity { getMainActivity() };
    LocalRef mainWindow { activity != nullptr
                          ? env->CallObjectMethod (activity, AndroidActivity.getWindow)
                          : nullptr };
    LocalRef decorView { mainWindow != nullptr
                         ? env->CallObjectMethod (mainWindow, AndroidWindow.getDecorView)
                         : nullptr };
    static constexpr jint androidContentViewId = 0x01020002 /* android.R.id.content */;
    LocalRef contentView { decorView != nullptr
                           ? env->CallObjectMethod (decorView, AndroidView.findViewById, androidContentViewId)
                           : nullptr };

    LocalRef insetsNative { decorView != nullptr
                            ? env->CallObjectMethod (decorView, AndroidView.getRootWindowInsets)
                            : nullptr };

    const auto isMultiWindow = activity != nullptr && env->CallBooleanMethod (activity, AndroidActivity.isInMultiWindowMode);

    if (insetsNative != nullptr)
    {
        // If we're in multi-window mode, the system UI bars are always visible
        const auto visibility = isMultiWindow ? 0 : env->CallIntMethod (decorView, AndroidView.getWindowSystemUiVisibility);
        JuceInsets::tie (d) = getInsetsFromAndroidWindowInsets (insetsNative, visibility, d.scale).tie();
    }

    static const auto sdkVersion = getAndroidSDKVersion();

    if (sdkVersion >= 30)
    {
        const LocalRef<jobject> windowMetrics (env->CallObjectMethod (windowManager, AndroidWindowManager30.getCurrentWindowMetrics));
        const LocalRef<jobject> bounds (env->CallObjectMethod (windowMetrics, AndroidWindowMetrics.getBounds));
        d.userBounds = (Rectangle<int>::leftTopRightBottom (env->GetIntField (bounds, AndroidRect.left),
                                                            env->GetIntField (bounds, AndroidRect.top),
                                                            env->GetIntField (bounds, AndroidRect.right),
                                                            env->GetIntField (bounds, AndroidRect.bottom)).toFloat() / d.scale);
    }
    else
    {
        d.userBounds = std::invoke ([&]
        {
            // No content view yet; approximate with display size
            if (contentView == nullptr)
                return d.logicalBounds;

            const auto topLeft = AndroidComponentPeer::getViewLocationOnScreen (env, contentView);

            // This may not be correct for split-screen mode on older devices, but there also
            // doesn't seem to be a reliable way of getting this information, so this'll have to do.
            const auto contentSize = Rectangle { topLeft.x,
                                                 topLeft.y,
                                                 env->CallIntMethod (contentView, AndroidView.getWidth),
                                                 env->CallIntMethod (contentView, AndroidView.getHeight) }.toFloat() / d.scale;

            if (contentSize.isEmpty())
                return d.logicalBounds;

            return contentSize;
        });
    }

    if (activity != nullptr)
    {
        if (contentView != nullptr)
        {
            static bool hasAddedMainActivityListener = false;

            if (! std::exchange (hasAddedMainActivityListener, true))
            {
                env->CallVoidMethod (contentView, AndroidView.addOnLayoutChangeListener,
                                     CreateJavaInterface (new AndroidComponentPeer::MainActivityWindowLayoutListener,
                                                          "android/view/View$OnLayoutChangeListener").get());
            }
        }
    }
    else if (! AndroidComponentPeer::startupActivityCallbackListener.has_value())
    {
        AndroidComponentPeer::startupActivityCallbackListener.emplace();
    }

    displays.add (d);
}

//==============================================================================
Image detail::WindowingHelpers::createIconForFile (const File& /*file*/)
{
    return {};
}

//==============================================================================
class MouseCursor::PlatformSpecificHandle
{
public:
    PlatformSpecificHandle (const MouseCursor::StandardCursorType)      {}
    PlatformSpecificHandle (const detail::CustomMouseCursorInfo&)       {}

    static void showInWindow (PlatformSpecificHandle*, ComponentPeer*)  {}
};

//==============================================================================
bool DragAndDropContainer::performExternalDragDropOfFiles (const StringArray& /*files*/, bool /*canMove*/,
                                                           Component* /*srcComp*/, std::function<void()> /*callback*/)
{
    jassertfalse;    // no such thing on Android!
    return false;
}

bool DragAndDropContainer::performExternalDragDropOfText (const String& /*text*/, Component* /*srcComp*/,
                                                          std::function<void()> /*callback*/)
{
    jassertfalse;    // no such thing on Android!
    return false;
}

//==============================================================================
void LookAndFeel::playAlertSound()
{
}

//==============================================================================
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
 METHOD (getText,      "getText",            "()Ljava/lang/CharSequence;") \
 METHOD (setText,      "setText",            "(Ljava/lang/CharSequence;)V")

DECLARE_JNI_CLASS (AndroidClipboardManager, "android/content/ClipboardManager")
#undef JNI_CLASS_MEMBERS

//==============================================================================
void SystemClipboard::copyTextToClipboard (const String& text)
{
    auto* env = getEnv();

    LocalRef<jobject> clipboardManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, javaString ("clipboard").get()));
    env->CallVoidMethod (clipboardManager.get(), AndroidClipboardManager.setText, javaString (text).get());
}

String SystemClipboard::getTextFromClipboard()
{
    auto* env = getEnv();

    LocalRef<jobject> clipboardManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService, javaString ("clipboard").get()));
    LocalRef<jobject> charSequence (env->CallObjectMethod (clipboardManager.get(), AndroidClipboardManager.getText));

    if (charSequence == nullptr)
        return {};

    return juceString (LocalRef<jstring> ((jstring) env->CallObjectMethod (charSequence.get(), JavaCharSequence.toString)));
}

//==============================================================================
constexpr int extendedKeyModifier           = 0x10000;

const int KeyPress::spaceKey                = ' ';
const int KeyPress::returnKey               = extendedKeyModifier + 2;
const int KeyPress::escapeKey               = extendedKeyModifier + 3;
const int KeyPress::backspaceKey            = extendedKeyModifier + 4;
const int KeyPress::leftKey                 = extendedKeyModifier + 5;
const int KeyPress::rightKey                = extendedKeyModifier + 6;
const int KeyPress::upKey                   = extendedKeyModifier + 7;
const int KeyPress::downKey                 = extendedKeyModifier + 8;
const int KeyPress::pageUpKey               = extendedKeyModifier + 9;
const int KeyPress::pageDownKey             = extendedKeyModifier + 10;
const int KeyPress::endKey                  = extendedKeyModifier + 11;
const int KeyPress::homeKey                 = extendedKeyModifier + 12;
const int KeyPress::deleteKey               = extendedKeyModifier + 13;
const int KeyPress::insertKey               = extendedKeyModifier + 14;
const int KeyPress::tabKey                  = extendedKeyModifier + 15;
const int KeyPress::F1Key                   = extendedKeyModifier + 16;
const int KeyPress::F2Key                   = extendedKeyModifier + 17;
const int KeyPress::F3Key                   = extendedKeyModifier + 18;
const int KeyPress::F4Key                   = extendedKeyModifier + 19;
const int KeyPress::F5Key                   = extendedKeyModifier + 20;
const int KeyPress::F6Key                   = extendedKeyModifier + 21;
const int KeyPress::F7Key                   = extendedKeyModifier + 22;
const int KeyPress::F8Key                   = extendedKeyModifier + 23;
const int KeyPress::F9Key                   = extendedKeyModifier + 24;
const int KeyPress::F10Key                  = extendedKeyModifier + 25;
const int KeyPress::F11Key                  = extendedKeyModifier + 26;
const int KeyPress::F12Key                  = extendedKeyModifier + 27;
const int KeyPress::F13Key                  = extendedKeyModifier + 28;
const int KeyPress::F14Key                  = extendedKeyModifier + 29;
const int KeyPress::F15Key                  = extendedKeyModifier + 30;
const int KeyPress::F16Key                  = extendedKeyModifier + 31;
const int KeyPress::F17Key                  = extendedKeyModifier + 32;
const int KeyPress::F18Key                  = extendedKeyModifier + 33;
const int KeyPress::F19Key                  = extendedKeyModifier + 34;
const int KeyPress::F20Key                  = extendedKeyModifier + 35;
const int KeyPress::F21Key                  = extendedKeyModifier + 36;
const int KeyPress::F22Key                  = extendedKeyModifier + 37;
const int KeyPress::F23Key                  = extendedKeyModifier + 38;
const int KeyPress::F24Key                  = extendedKeyModifier + 39;
const int KeyPress::F25Key                  = extendedKeyModifier + 40;
const int KeyPress::F26Key                  = extendedKeyModifier + 41;
const int KeyPress::F27Key                  = extendedKeyModifier + 42;
const int KeyPress::F28Key                  = extendedKeyModifier + 43;
const int KeyPress::F29Key                  = extendedKeyModifier + 44;
const int KeyPress::F30Key                  = extendedKeyModifier + 45;
const int KeyPress::F31Key                  = extendedKeyModifier + 46;
const int KeyPress::F32Key                  = extendedKeyModifier + 47;
const int KeyPress::F33Key                  = extendedKeyModifier + 48;
const int KeyPress::F34Key                  = extendedKeyModifier + 49;
const int KeyPress::F35Key                  = extendedKeyModifier + 50;
const int KeyPress::numberPad0              = extendedKeyModifier + 51;
const int KeyPress::numberPad1              = extendedKeyModifier + 52;
const int KeyPress::numberPad2              = extendedKeyModifier + 53;
const int KeyPress::numberPad3              = extendedKeyModifier + 54;
const int KeyPress::numberPad4              = extendedKeyModifier + 55;
const int KeyPress::numberPad5              = extendedKeyModifier + 56;
const int KeyPress::numberPad6              = extendedKeyModifier + 57;
const int KeyPress::numberPad7              = extendedKeyModifier + 58;
const int KeyPress::numberPad8              = extendedKeyModifier + 59;
const int KeyPress::numberPad9              = extendedKeyModifier + 60;
const int KeyPress::numberPadAdd            = extendedKeyModifier + 61;
const int KeyPress::numberPadSubtract       = extendedKeyModifier + 62;
const int KeyPress::numberPadMultiply       = extendedKeyModifier + 63;
const int KeyPress::numberPadDivide         = extendedKeyModifier + 64;
const int KeyPress::numberPadSeparator      = extendedKeyModifier + 65;
const int KeyPress::numberPadDecimalPoint   = extendedKeyModifier + 66;
const int KeyPress::numberPadEquals         = extendedKeyModifier + 67;
const int KeyPress::numberPadDelete         = extendedKeyModifier + 68;
const int KeyPress::playKey                 = extendedKeyModifier + 69;
const int KeyPress::stopKey                 = extendedKeyModifier + 70;
const int KeyPress::fastForwardKey          = extendedKeyModifier + 71;
const int KeyPress::rewindKey               = extendedKeyModifier + 72;

//==============================================================================
#ifdef JUCE_PUSH_NOTIFICATIONS_ACTIVITY
 struct JuceActivityNewIntentListener
 {
     #define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
      CALLBACK (appNewIntent, "appNewIntent", "(Landroid/content/Intent;)V") \
      CALLBACK (appOnResume,  "appOnResume",  "()V")

      DECLARE_JNI_CLASS (JavaActivity, JUCE_PUSH_NOTIFICATIONS_ACTIVITY)
     #undef JNI_CLASS_MEMBERS

     static void JNICALL appNewIntent (JNIEnv*, jobject /*activity*/, jobject intentData)
     {
         juce_handleNotificationIntent (static_cast<void*> (intentData));
     }

     static void JNICALL appOnResume (JNIEnv*, jobject)
     {
         juce_handleOnResume();
     }
 };
#endif

} // namespace juce
