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.

FlutterDartProject.h 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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_FLUTTERDARTPROJECT_H_
  5. #define FLUTTER_FLUTTERDARTPROJECT_H_
  6. #import <Foundation/Foundation.h>
  7. #include "FlutterMacros.h"
  8. /**
  9. * A set of Flutter and Dart assets used by a `FlutterEngine` to initialize execution.
  10. */
  11. FLUTTER_EXPORT
  12. @interface FlutterDartProject : NSObject
  13. /**
  14. * Initializes a Flutter Dart project from a bundle.
  15. */
  16. - (instancetype)initWithPrecompiledDartBundle:(NSBundle*)bundle NS_DESIGNATED_INITIALIZER;
  17. /**
  18. * Unavailable - use `init` instead.
  19. */
  20. - (instancetype)initFromDefaultSourceForConfiguration FLUTTER_UNAVAILABLE("Use -init instead.");
  21. /**
  22. * Returns the file name for the given asset. If the bundle with the identifier
  23. * "io.flutter.flutter.app" exists, it will try use that bundle; otherwise, it
  24. * will use the main bundle. To specify a different bundle, use
  25. * `-lookupKeyForAsset:asset:fromBundle`.
  26. *
  27. * @param asset The name of the asset. The name can be hierarchical.
  28. * @return the file name to be used for lookup in the main bundle.
  29. */
  30. + (NSString*)lookupKeyForAsset:(NSString*)asset;
  31. /**
  32. * Returns the file name for the given asset.
  33. * The returned file name can be used to access the asset in the supplied bundle.
  34. *
  35. * @param asset The name of the asset. The name can be hierarchical.
  36. * @param bundle The `NSBundle` to use for looking up the asset.
  37. * @return the file name to be used for lookup in the main bundle.
  38. */
  39. + (NSString*)lookupKeyForAsset:(NSString*)asset fromBundle:(NSBundle*)bundle;
  40. /**
  41. * Returns the file name for the given asset which originates from the specified package.
  42. * The returned file name can be used to access the asset in the application's main bundle.
  43. *
  44. * @param asset The name of the asset. The name can be hierarchical.
  45. * @param package The name of the package from which the asset originates.
  46. * @return the file name to be used for lookup in the main bundle.
  47. */
  48. + (NSString*)lookupKeyForAsset:(NSString*)asset fromPackage:(NSString*)package;
  49. /**
  50. * Returns the file name for the given asset which originates from the specified package.
  51. * The returned file name can be used to access the asset in the specified bundle.
  52. *
  53. * @param asset The name of the asset. The name can be hierarchical.
  54. * @param package The name of the package from which the asset originates.
  55. * @param bundle The bundle to use when doing the lookup.
  56. * @return the file name to be used for lookup in the main bundle.
  57. */
  58. + (NSString*)lookupKeyForAsset:(NSString*)asset
  59. fromPackage:(NSString*)package
  60. fromBundle:(NSBundle*)bundle;
  61. /**
  62. * Returns the default identifier for the bundle where we expect to find the Flutter Dart
  63. * application.
  64. */
  65. + (NSString*)defaultBundleIdentifier;
  66. @end
  67. #endif // FLUTTER_FLUTTERDARTPROJECT_H_