Flutter macOS Embedder
FlutterAppLifecycleDelegate.mm File Reference
#import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterAppLifecycleDelegate.h"
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterAppLifecycleDelegate_Internal.h"
#include <AppKit/AppKit.h>
#include <AppKit/NSApplication.h>
#include <Foundation/Foundation.h>
#include <objc/message.h>
#include "flutter/fml/logging.h"
#include "flutter/fml/paths.h"

Go to the source code of this file.

Macros

#define OBSERVE_NOTIFICATION(SELECTOR)   [self addObserverFor:NSApplication##SELECTOR##Notification selector:@selector(handle##SELECTOR:)]
 
#define DISTRIBUTE_NOTIFICATION(SELECTOR)
 

Macro Definition Documentation

◆ DISTRIBUTE_NOTIFICATION

#define DISTRIBUTE_NOTIFICATION (   SELECTOR)
Value:
-(void)handle##SELECTOR : (NSNotification*)notification { \
for (NSObject<FlutterAppLifecycleDelegate> * delegate in _delegates) { \
if ([delegate respondsToSelector:@selector(handle##SELECTOR:)]) { \
[delegate handle##SELECTOR:notification]; \
} \
} \
}

Definition at line 78 of file FlutterAppLifecycleDelegate.mm.

◆ OBSERVE_NOTIFICATION

#define OBSERVE_NOTIFICATION (   SELECTOR)    [self addObserverFor:NSApplication##SELECTOR##Notification selector:@selector(handle##SELECTOR:)]