macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

NSRemoteNotificationType

INDEX>AppKit>NSApplication

リモート通知のタイプ

Objective-C

enum {
   NSRemoteNotificationTypeNone     = 0,
   NSRemoteNotificationTypeBadge    = 1 << 0
   NSRemoteNotificationTypeSound    = 1 << 1,
   NSRemoteNotificationTypeAlert    = 1 << 2,
};
typedef NSUInteger  NSRemoteNotificationType;

Swift

struct NSRemoteNotificationType : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: NSRemoteNotificationType { get }
    static var Badge: NSRemoteNotificationType { get }
    static var Sound: NSRemoteNotificationType { get }
    static var Alert: NSRemoteNotificationType { get }
}

解説

フレームワーク

ApplicationKit

クラス

NSApplication

使用可能

10.7

更新時のバージョン

OS X 10.10

参照

関連記事

例文