[messages] Update for iOS 10 beta 2 (#362)

This commit is contained in:
Vincent Dondain 2016-07-08 16:27:49 +02:00 коммит произвёл Sebastien Pouliot
Родитель 55eb0c8537
Коммит f786a588c1
1 изменённых файлов: 28 добавлений и 2 удалений

Просмотреть файл

@ -34,6 +34,20 @@ namespace XamCore.Messages {
Large
}
[Native]
public enum MSMessageErrorCode : nint
{
FileNotFound = 1,
FileUnreadable,
ImproperFileType,
ImproperFileUrl,
StickerFileImproperPath,
StickerFileImproperFileAttributes,
StickerFileImproperFileSize,
StickerFileImproperFileFormat,
UrlExceedsMaxSize,
}
[iOS (10,0)]
[BaseType (typeof(UIViewController))]
interface MSMessagesAppViewController
@ -101,9 +115,9 @@ namespace XamCore.Messages {
[NullAllowed, Export ("selectedMessage")]
MSMessage SelectedMessage { get; }
[Export ("insertMessage:localizedChangeDescription:completionHandler:")]
[Export ("insertMessage:completionHandler:")]
[Async]
void InsertMessage (MSMessage message, [NullAllowed] string changeDescription, [NullAllowed] Action<NSError> completionHandler);
void InsertMessage (MSMessage message, [NullAllowed] Action<NSError> completionHandler);
[Export ("insertSticker:completionHandler:")]
[Async]
@ -144,6 +158,9 @@ namespace XamCore.Messages {
[NullAllowed, Export ("accessibilityLabel")]
string AccessibilityLabel { get; set; }
[NullAllowed, Export ("summaryText")]
string SummaryText { get; set; }
[NullAllowed, Export ("error", ArgumentSemantic.Copy)]
NSError Error { get; set; }
}
@ -263,6 +280,15 @@ namespace XamCore.Messages {
[NullAllowed, Export ("dataSource", ArgumentSemantic.Weak)]
IMSStickerBrowserViewDataSource DataSource { get; set; }
[Export ("contentOffset", ArgumentSemantic.Assign)]
CGPoint ContentOffset { get; set; }
[Export ("contentInset", ArgumentSemantic.Assign)]
UIEdgeInsets ContentInset { get; set; }
[Export ("setContentOffset:animated:")]
void SetContentOffset (CGPoint contentOffset, bool animated);
[Export ("reloadData")]
void ReloadData ();
}