github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/updater/osx/Updater/Prompt.h (about)

     1  //
     2  //  Prompt.h
     3  //  Updater
     4  //
     5  //  Created by Gabriel on 4/13/16.
     6  //  Copyright © 2016 Keybase. All rights reserved.
     7  //
     8  
     9  #import <Foundation/Foundation.h>
    10  
    11  #import <AppKit/AppKit.h>
    12  
    13  @interface Prompt : NSObject
    14  
    15  + (void)showPromptWithInputString:(NSString *)inputString presenter:(NSModalResponse (^)(NSAlert *alert))presenter completion:(void (^)(NSData *output))completion;
    16  
    17  + (void)showUpdatePrompt:(NSDictionary *)input presenter:(NSModalResponse (^)(NSAlert *alert))presenter completion:(void (^)(NSData *output))completion;
    18  
    19  + (void)showGenericPrompt:(NSDictionary *)input presenter:(NSModalResponse (^)(NSAlert *alert))presenter completion:(void (^)(NSData *output))completion;
    20  
    21  @end