/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
#import <Foundation/Foundation.h>
#import "CDVPlugin.h"
#define CDV_FORMAT_SHORT 0
#define CDV_FORMAT_MEDIUM 1
#define CDV_FORMAT_LONG 2
#define CDV_FORMAT_FULL 3
#define CDV_SELECTOR_MONTHS 0
#define CDV_SELECTOR_DAYS 1
enum CDVGlobalizationError {
CDV_UNKNOWN_ERROR = 0,
CDV_FORMATTING_ERROR = 1,
CDV_PARSING_ERROR = 2,
CDV_PATTERN_ERROR = 3,
};
typedef NSUInteger CDVGlobalizationError;
@interface CDVGlobalization : CDVPlugin {
CFLocaleRef currentLocale;
}
- (void)getPreferredLanguage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns the string identifier for the clients current locale setting.
* It returns the locale identifier string to the successCB callback with a
* properties object as a parameter. If there is an error getting the locale,
* then the errorCB callback is invoked.
*/
- (void)getLocaleName:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns a date formatted as a string according to the clients user preferences and
* calendar using the time zone of the client. It returns the formatted date string to the
* successCB callback with a properties object as a parameter. If there is an error
* formatting the date, then the errorCB callback is invoked.
*
* options: "date" contains the number of milliseconds that represents the JavaScript date
*/
- (void)dateToString:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Parses a date formatted as a string according to the clients user
* preferences and calendar using the time zone of the client and returns
* the corresponding date object. It returns the date to the successCB
* callback with a properties object as a parameter. If there is an error
* parsing the date string, then the errorCB callback is invoked.
*
* options: "dateString" contains the JavaScript string to parse for a date
*/
- (void)stringToDate:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns a pattern string for formatting and parsing dates according to the clients
* user preferences. It returns the pattern to the successCB callback with a
* properties object as a parameter. If there is an error obtaining the pattern,
* then the errorCB callback is invoked.
*
*/
- (void)getDatePattern:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns an array of either the names of the months or days of the week
* according to the clients user preferences and calendar. It returns the array of names to the
* successCB callback with a properties object as a parameter. If there is an error obtaining the
* names, then the errorCB callback is invoked.
*
*/
- (void)getDateNames:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns whether daylight savings time is in effect for a given date using the clients
* time zone and calendar. It returns whether or not daylight savings time is in effect
* to the successCB callback with a properties object as a parameter. If there is an error
* reading the date, then the errorCB callback is invoked.
*
* options: "date" contains the number of milliseconds that represents the JavaScript date
*
*/
- (void)isDayLightSavingsTime:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns the first day of the week according to the clients user preferences and calendar.
* The days of the week are numbered starting from 1 where 1 is considered to be Sunday.
* It returns the day to the successCB callback with a properties object as a parameter.
* If there is an error obtaining the pattern, then the errorCB callback is invoked.
*
*/
- (void)getFirstDayOfWeek:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns a number formatted as a string according to the clients user preferences.
* It returns the formatted number string to the successCB callback with a properties object as a
* parameter. If there is an error formatting the number, then the errorCB callback is invoked.
*
* options: "number" contains the JavaScript number to format
*
*/
- (void)numberToString:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Parses a number formatted as a string according to the clients user preferences and
* returns the corresponding number. It returns the number to the successCB callback with a
* properties object as a parameter. If there is an error parsing the number string, then
* the errorCB callback is invoked.
*
* options: "numberString" contains the JavaScript string to parse for a number
*
*/
- (void)stringToNumber:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns a pattern string for formatting and parsing numbers according to the clients user
* preferences. It returns the pattern to the successCB callback with a properties object as a
* parameter. If there is an error obtaining the pattern, then the errorCB callback is invoked.
*
*/
- (void)getNumberPattern:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Returns a pattern string for formatting and parsing currency values according to the clients
* user preferences and ISO 4217 currency code. It returns the pattern to the successCB callback with a
* properties object as a parameter. If there is an error obtaining the pattern, then the errorCB
* callback is invoked.
*
* options: "currencyCode" contains the ISO currency code from JavaScript
*/
- (void)getCurrencyPattern:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
ios phonegap2.9 helloworld
共181个文件
h:47个
png:46个
m:42个
4星 · 超过85%的资源 需积分: 3 63 下载量 13 浏览量
2013-07-03
11:21:51
上传
评论
收藏 7.6MB ZIP 举报
温馨提示
这是一个用目前phonegap最新版本2.9生成的helloworld,之前按官方文档去做,老是no such file....,后来多次试验才发现文档写得不够仔细啊
资源推荐
资源详情
资源评论
收起资源包目录
ios phonegap2.9 helloworld (181个子文件)
sim.applescript 1KB
build 2KB
clean 1KB
jasmine.css 6KB
index.css 4KB
.DS_Store 6KB
emulate 2KB
.gitignore 68B
CDVGlobalization.h 6KB
CDVContact.h 6KB
CDVContacts.h 5KB
CDVCapture.h 5KB
CDVFile.h 4KB
CDVReachability.h 4KB
CDVCamera.h 4KB
CDVLocation.h 4KB
CDVSound.h 4KB
CDVInAppBrowser.h 3KB
CDVFileTransfer.h 3KB
CDVAvailability.h 3KB
CDVPluginResult.h 3KB
CDVViewController.h 3KB
CDVJpegHeaderWriter.h 3KB
CDVInvokedUrlCommand.h 2KB
CDVCommandDelegate.h 2KB
CDVPlugin.h 2KB
CDVLocalStorage.h 2KB
CDV.h 2KB
CDVExif.h 2KB
NSDictionary+Extensions.h 1KB
AppDelegate.h 1KB
CDVWebViewDelegate.h 1KB
CDVBattery.h 1KB
CDVCommandQueue.h 1KB
CDVNotification.h 1KB
MainViewController.h 1KB
CDVConfigParser.h 1KB
CDVWhitelist.h 1KB
CDVAccelerometer.h 1KB
UIDevice+Extensions.h 1KB
CDVCommandDelegateImpl.h 1KB
CDVSplashScreen.h 1KB
CDVConnection.h 1KB
CDVUserAgentUtil.h 1KB
CDVURLProtocol.h 1KB
CDVScreenOrientationDelegate.h 1KB
CDVDebug.h 1KB
CDVJSON.h 986B
CDVDevice.h 949B
NSMutableArray+QueueAdditions.h 928B
NSArray+Comparisons.h 914B
CDVTimer.h 909B
NSData+Base64.h 893B
CDVLogger.h 887B
CDVEcho.h 834B
spec.html 2KB
index.html 2KB
install-device 1KB
install-emulator 3KB
cordova.js 209KB
cordova.js 209KB
jasmine.js 67KB
jasmine-html.js 19KB
index.js 3KB
index.js 2KB
helper.js 1KB
MIT.LICENSE 1KB
list-devices 1KB
list-emulator-images 1KB
list-started-emulators 1KB
log 890B
CDVContact.m 78KB
CDVFile.m 63KB
CDVCapture.m 35KB
CDVViewController.m 34KB
CDVGlobalization.m 33KB
CDVInAppBrowser.m 33KB
CDVFileTransfer.m 31KB
CDVCamera.m 30KB
CDVSound.m 29KB
CDVContacts.m 26KB
CDVJpegHeaderWriter.m 26KB
CDVLocation.m 23KB
CDVLocalStorage.m 19KB
CDVWebViewDelegate.m 14KB
CDVReachability.m 10KB
CDVURLProtocol.m 9KB
NSData+Base64.m 9KB
CDVWhitelist.m 9KB
CDVSplashScreen.m 8KB
CDVPluginResult.m 7KB
CDVPlugin.m 6KB
CDVCommandQueue.m 6KB
CDVBattery.m 6KB
AppDelegate.m 5KB
CDVUserAgentUtil.m 5KB
CDVNotification.m 5KB
CDVCommandDelegateImpl.m 5KB
MainViewController.m 5KB
CDVConnection.m 4KB
共 181 条
- 1
- 2
hhz2262491
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 正点原子开拓者FPGA多人表决器代码项目
- EOP-Last5Years.txt
- windows 32位、64位系统常见缺少的库
- 毕业设计基于springboot+vue实现的求职招聘类型网站源码+数据库(高分项目).zip
- 535springboot + vue 体质测试数据分析及可视化设计.zip(可运行源码+数据库文件+文档)
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统源码.zip
- 基于springboot+vue实现的求职招聘类型网站源代码+数据库(优质毕设项目).zip
- iOS APP提审checklist
- 第十四届中北大学ACM程序设计竞赛.zip
- UIGF_200852355_202404242026.json
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页