mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
32 lines
623 B
Objective-C
32 lines
623 B
Objective-C
//
|
|
// RBHybridCommand.m
|
|
// RobloxMobile
|
|
//
|
|
// Created by Ariel Lichtin on 2/5/15.
|
|
// Copyright (c) 2015 ROBLOX. All rights reserved.
|
|
//
|
|
|
|
#import "RBHybridCommand.h"
|
|
#import "RBHybridBridge.h"
|
|
#import "RBHybridWebView.h"
|
|
|
|
@implementation RBHybridCommand
|
|
|
|
-(void)executeCallback:(BOOL)success
|
|
{
|
|
if(_callbackID)
|
|
{
|
|
[_originWebView executeCallback:_callbackID success:success withParams:nil];
|
|
}
|
|
}
|
|
|
|
-(void)executeCallback:(BOOL)success withParams:(NSDictionary*)params
|
|
{
|
|
if(_callbackID)
|
|
{
|
|
[_originWebView executeCallback:_callbackID success:(BOOL)success withParams:params];
|
|
}
|
|
}
|
|
|
|
@end
|