Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FlutterCallbackCache.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2013 The Flutter Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef FLUTTER_FLUTTERCALLBACKCACHE_H_
  5. #define FLUTTER_FLUTTERCALLBACKCACHE_H_
  6. #import <Foundation/Foundation.h>
  7. #include "FlutterMacros.h"
  8. /**
  9. * An object containing the result of `FlutterCallbackCache`'s `lookupCallbackInformation`
  10. * method.
  11. */
  12. FLUTTER_EXPORT
  13. @interface FlutterCallbackInformation : NSObject
  14. /**
  15. * The name of the callback.
  16. */
  17. @property(retain) NSString* callbackName;
  18. /**
  19. * The class name of the callback.
  20. */
  21. @property(retain) NSString* callbackClassName;
  22. /**
  23. * The library path of the callback.
  24. */
  25. @property(retain) NSString* callbackLibraryPath;
  26. @end
  27. /**
  28. * The cache containing callback information for spawning a
  29. * `FlutterHeadlessDartRunner`.
  30. */
  31. FLUTTER_EXPORT
  32. @interface FlutterCallbackCache : NSObject
  33. /**
  34. * Returns the callback information for the given callback handle.
  35. * This callback information can be used when spawning a
  36. * `FlutterHeadlessDartRunner`.
  37. *
  38. * @param handle The handle for a callback, provided by the
  39. * Dart method `PluginUtilities.getCallbackHandle`.
  40. * @return A `FlutterCallbackInformation` object which contains the name of the
  41. * callback, the name of the class in which the callback is defined, and the
  42. * path of the library which contains the callback. If the provided handle is
  43. * invalid, nil is returned.
  44. */
  45. + (FlutterCallbackInformation*)lookupCallbackInformation:(int64_t)handle;
  46. @end
  47. #endif // FLUTTER_FLUTTERCALLBACKCACHE_H_