One Logo Pool Ball
CoreMIDI · IOS API REFERENCE

MIDICISession

class · iOS 12.0+ · Deprecated in iOS 18.0 · SDK 27.1

class MIDICISession

Members (15)

method · iOS 12.0+ · Deprecated in iOS 18.0

disableProfile

TypeScript
disableProfile(profile: MIDICIProfile, channel: number): void
Swift declaration
func disableProfile(_ profile: MIDICIProfile, onChannel channel: MIDIChannelNumber) throws
method · iOS 12.0+ · Deprecated in iOS 18.0

enable

TypeScript
enable(profile: MIDICIProfile, channel: number): void
Swift declaration
func enable(_ profile: MIDICIProfile, onChannel channel: MIDIChannelNumber) throws
init · iOS 12.0+ · Deprecated in iOS 18.0

init

TypeScript
static init(discoveredNode: MIDICIDiscoveredNode, handler: (() => void), disconnectHandler: ((arg0: MIDICISession, arg1: NativeError) => void)): MIDICISession
Swift declaration
init(discoveredNode: MIDICIDiscoveredNode, dataReadyHandler handler: @escaping () -> Void, disconnectHandler: @escaping MIDICISessionDisconnectBlock)
method · iOS 12.0+ · Deprecated in iOS 18.0

profileState

TypeScript
profileState(channel: number): MIDICIProfileState
Swift declaration
func profileState(forChannel channel: MIDIChannelNumber) -> MIDICIProfileState
method · iOS 14.0+ · Deprecated in iOS 18.0

send

TypeScript
send(profile: MIDICIProfile, channel: number, profileSpecificData: ArrayBuffer): boolean
Swift declaration
func send(_ profile: MIDICIProfile, onChannel channel: MIDIChannelNumber, profileData profileSpecificData: Data) -> Bool
get · iOS 12.0+ · Deprecated in iOS 18.0

deviceInfo

TypeScript
get deviceInfo(): MIDICIDeviceInfo
Swift declaration
var deviceInfo: MIDICIDeviceInfo { get }
get · iOS 12.0+ · Deprecated in iOS 18.0

maxPropertyRequests

TypeScript
get maxPropertyRequests(): _Foundation_NSNumber
Swift declaration
var maxPropertyRequests: NSNumber { get }
get · iOS 12.0+ · Deprecated in iOS 18.0

maxSysExSize

TypeScript
get maxSysExSize(): _Foundation_NSNumber
Swift declaration
var maxSysExSize: NSNumber { get }
get · iOS 12.0+ · Deprecated in iOS 18.0

midiDestination

TypeScript
get midiDestination(): number
Swift declaration
var midiDestination: MIDIEntityRef { get }
get · iOS 12.0+ · Deprecated in iOS 18.0

profileChangedCallback

TypeScript
get profileChangedCallback(): (((arg0: MIDICISession, arg1: number, arg2: MIDICIProfile, arg3: boolean) => Promise<void>)) | null
Swift declaration
var profileChangedCallback: MIDICIProfileChangedBlock? { get set }
set · iOS 12.0+ · Deprecated in iOS 18.0

profileChangedCallback

TypeScript
set profileChangedCallback(value: (((arg0: MIDICISession, arg1: number, arg2: MIDICIProfile, arg3: boolean) => void)) | null)
Swift declaration
var profileChangedCallback: MIDICIProfileChangedBlock? { get set }
get · iOS 12.0+ · Deprecated in iOS 18.0

profileSpecificDataHandler

TypeScript
get profileSpecificDataHandler(): (((arg0: MIDICISession, arg1: number, arg2: MIDICIProfile, arg3: ArrayBuffer) => Promise<void>)) | null
Swift declaration
var profileSpecificDataHandler: MIDICIProfileSpecificDataBlock? { get set }
set · iOS 12.0+ · Deprecated in iOS 18.0

profileSpecificDataHandler

TypeScript
set profileSpecificDataHandler(value: (((arg0: MIDICISession, arg1: number, arg2: MIDICIProfile, arg3: ArrayBuffer) => void)) | null)
Swift declaration
var profileSpecificDataHandler: MIDICIProfileSpecificDataBlock? { get set }
get · iOS 12.0+ · Deprecated in iOS 18.0

supportsProfileCapability

TypeScript
get supportsProfileCapability(): boolean
Swift declaration
var supportsProfileCapability: Bool { get }
get · iOS 12.0+ · Deprecated in iOS 18.0

supportsPropertyCapability

TypeScript
get supportsPropertyCapability(): boolean
Swift declaration
var supportsPropertyCapability: Bool { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MIDICISession.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All CoreMIDI types →