FLIR One Developer / Blog / Topics / Swift, xcode 9.2 / Getting images with Xcode 9.2 and Swift

Getting images with Xcode 9.2 and Swift

Home Forums iOS development Installation and getting started Getting images with Xcode 9.2 and Swift

Tagged: ,

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Paulina Paulina 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author

    Posts

  • #6200

    Profile photo of Thomas
    Thomas

    Participant

    Dear All,

    I know that the SDK is not built for Swift, but I also know they are some specialists around. I have been trying very hard to get images with Swift 4 but it seems that no methods are triggered (not event flirOneSDKDidConnect()). I followed the advice of many of you but nothing seems to work. I did the following:
    – In my FLIROneSDK header, I change the method definition as following:
    (void) flirOneSDKDelegateManager:(NSObject *)delegateManager didReceiveBlendedMSXRGBA8888Image:(NSData *)msxImage imageSize:(CGSize)size;

    In my Controller, the method is called like this: func flirOneSDKDelegateManager(_ delegateManager: NSObject!, didReceiveBlendedMSXRGBA8888Image msxImage: Data!, imageSize size: CGSize)

    The methods are recognized, then I assume my bridge with Objective-C works. Please please please, if you have any idea 🙂

    Cheers

    #8069

    Profile photo of ALex
    ALex

    Participant

    Hey, if you got this solved, please post it here and help me.

    #9506

    Profile photo of Paulina
    Paulina

    Participant

    Use
    func flirOneSDKDelegateManager(_ delegateManager: FLIROneSDKDelegateManager!, didReceiveBlendedMSXRGBA8888Image msxImage: Data!, imageSize size: CGSize, sequenceNumber: Int) {

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.