Phasellus nisl leo, ultricies vel justo ut, posuere tincidunt sem. Sed ac nisl molestie, imperdiet neque nec, auctor risus. Suspendisse eleifend eleifend lobortis. Sed ac lacus tristique, varius tortor tempor, auctor ante.
Suspendisse vitae porta neque. Proin facilisis ac tortor eu feugiat. Nunc ullamcorper turpis nec metus feugiat, in suscipit odio posuere. Nulla nec consectetur felis, non suscipit purus.
Objective-C
1 2 3 4 5 6 7 8 |
[SBDOpenChannel createChannelWithName:NAME coverUrl:COVER_URL data:DATA operatorUserIds:nil completionHandler:^(SBDOpenChannel * _Nullable channel, SBDError * _Nullable error) { if (error != nil) { NSLog(@"Error: %@", error); return; } // ... }]; |
Swift
1 2 3 4 5 6 7 8 |
SBDOpenChannel.createChannel(withName: NAME, coverUrl: COVER_URL, data: DATA, operatorUserIds: nil, completionHandler: { (channel, error) in if error != nil { NSLog("Error: %@", error!) return } // ... }) |