한국어

스마트폰앱

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app





UIScreenEdgePanGestureRecognizer //밀어서 인식


pan.edges = UIRectEdgeRight; 오른쪽 빈공간


[self.view addGestureRecognizer:pan];

_swipeGestureRecognizer.enabled = NO;



/*

 * Copyright (c) 2010-2020 Belledonne Communications SARL.

 *

 * This file is part of linphone-iphone

 *

 * This program is free software: you can redistribute it and/or modify

 * it under the terms of the GNU General Public License as published by

 * the Free Software Foundation, either version 3 of the License, or

 * (at your option) any later version.

 *

 * This program is distributed in the hope that it will be useful,

 * but WITHOUT ANY WARRANTY; without even the implied warranty of

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

 * GNU General Public License for more details.

 *

 * You should have received a copy of the GNU General Public License

 * along with this program. If not, see <http://www.gnu.org/licenses/>.

 */


#import "SideMenuView.h"

#import "LinphoneManager.h"

#import "PhoneMainView.h"


@implementation SideMenuView


- (void)viewDidLoad {

[super viewDidLoad];


#pragma deploymate push "ignored-api-availability"

if (UIDevice.currentDevice.systemVersion.doubleValue >= 7) {


// it's better to detect only pan from screen edges

        //밀어선 인식 등록, 함수동작 action:@selector(onLateralSwipe:)


UIScreenEdgePanGestureRecognizer *pan =

[[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(onLateralSwipe:)];

pan.edges = UIRectEdgeRight; //오른쪽빈공간

[self.view addGestureRecognizer:pan];

_swipeGestureRecognizer.enabled = NO;

}

#pragma deploymate pop

}

- (void)viewWillAppear:(BOOL)animated {

[super viewWillAppear:animated];

[_sideMenuTableViewController viewWillAppear:animated];

[NSNotificationCenter.defaultCenter addObserver:self

   selector:@selector(registrationUpdateEvent:)

   name:kLinphoneRegistrationUpdate

object:nil];


[self updateHeader]; ///헤더업데이트

[_sideMenuTableViewController.tableView reloadData];//테이블뷰 업데이트(리로드 데이타)

}


- (void)viewDidAppear:(BOOL)animated {

[super viewDidAppear:animated];

_grayBackground.hidden = NO;

}


- (void)viewWillDisappear:(BOOL)animated {

[super viewWillDisappear:animated];

_grayBackground.hidden = YES;

// should be better than that with alpha animation..

}


- (void)updateHeader {

LinphoneAccount *default_account = linphone_core_get_default_account(LC); //디펄트 어카운트 존재확인


if (default_account != NULL) {//존재하면

const LinphoneAddress *addr = linphone_account_params_get_identity_address(linphone_account_get_params(default_account));//어드레스가져온다

[ContactDisplay setDisplayNameLabel:_nameLabel forAddress:addr];//콘택트에서 어드레스에 맞는 네임을 가져와서 네임라벨에표시

char *str = addr ? linphone_address_as_string(addr) : nil; // addr를 스트링값으로 가져온다

_addressLabel.text = str ? [NSString stringWithUTF8String:str] : NSLocalizedString(@"No address", nil);//str을 UTF8스트링값으로 어드레스라벨에표시

if (str) ms_free(str);

} else {

_nameLabel.text = linphone_core_get_account_list(LC) ? NSLocalizedString(@"No default account", nil) : NSLocalizedString(@"No account", nil);

// display direct IP:port address so that we can be reached

LinphoneAddress *addr = linphone_core_get_primary_contact_parsed(LC); //디펄트 어카운트가 없고 primary_contact_parsed 있다면

if (addr) {

char *as_string = linphone_address_as_string(addr); //스트링으로 가져온다

_addressLabel.text = [NSString stringWithFormat:@"%s", as_string];//어드레스라벨에 표시한다

ms_free(as_string);//스트링해제

linphone_address_unref(addr);//어드레스해제

} else {

_addressLabel.text = NSLocalizedString(@"No address", nil);// primary_contact_parsed 없다면 노어드레스표시

}

_presenceImage.image = nil;

}

_avatarImage.image = [LinphoneUtils selfAvatar];

}


#pragma deploymate push "ignored-api-availability"

- (void)onLateralSwipe:(UIScreenEdgePanGestureRecognizer *)pan {

[PhoneMainView.instance.mainViewController hideSideMenu:YES];

}

#pragma deploymate pop


- (IBAction)onHeaderClick:(id)sender {

/*[PhoneMainView.instance changeCurrentView:SettingsView.compositeViewDescription];*/ //commented added by moon

[PhoneMainView.instance.mainViewController hideSideMenu:YES];

}


- (IBAction)onAvatarClick:(id)sender {

// hide ourself because we are on top of image picker

if (!IPAD) {

[PhoneMainView.instance.mainViewController hideSideMenu:YES];

}

[ImagePickerView SelectImageFromDevice:self atPosition:_avatarImage inView:self.view withDocumentMenuDelegate:nil];

}


- (IBAction)onBackgroundClicked:(id)sender {

[PhoneMainView.instance.mainViewController hideSideMenu:YES];

}


- (void)registrationUpdateEvent:(NSNotification *)notif {

[self updateHeader];

[_sideMenuTableViewController.tableView reloadData];

}


#pragma mark - Image picker delegate


- (void)imagePickerDelegateImage:(UIImage *)image info:(NSString *)phAssetId {

// When getting image from the camera, it may be 90° rotated due to orientation

// (image.imageOrientation = UIImageOrientationRight). Just rotate it to be face up.

if (image.imageOrientation != UIImageOrientationUp) {

UIGraphicsBeginImageContextWithOptions(image.size, false, image.scale);

[image drawInRect:CGRectMake(0, 0, image.size.width, image.size.height)];

image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

}

    

    [LinphoneManager.instance lpConfigSetString:phAssetId forKey:@"avatar"];

    _avatarImage.image = [LinphoneUtils selfAvatar];

    [LinphoneManager.instance loadAvatar];


// Dismiss popover on iPad

if (IPAD) {

[VIEW(ImagePickerView).popoverController dismissPopoverAnimated:TRUE];

} else {

[PhoneMainView.instance.mainViewController hideSideMenu:NO];

}

}


- (void)imagePickerDelegateVideo:(NSURL*)url info:(NSDictionary *)info {

return; // Avatar video not supported (yet ;) )

}


@end


조회 수 :
8345
등록일 :
2022.06.14
11:29:59 (*.128.149.105)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=3348760&act=trackback&key=9b3
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=3348760
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
35 070가입 않고 국내 유선 무선 집전화 휴대폰 전화 해외 국내에서 전화 수신 받는 방법 admin 2015-02-28 526769
34 스마트폰 앱 안드로이드 아이폰 인터넷전화 무료전화 070 FAX to Email 수신 admin 2013-02-13 125890
33 스마트폰 070 인터넷전화 무료통화 앱 WIFI 5G 4G LTE SIP 요금절약 file admin 2014-02-11 85978
32 TCP Connection Test Program file admin 2013-09-28 75942
31 스마트폰 무제한 무료통화 앱 WIFI 2G 3G 4G LTE VOIP mVOIP SIP 요금절약 admin 2014-05-31 74836
30 Sipdroid wiki and english manuall file admin 2013-11-09 72833
29 070 인터넷전화 온누리 070 가입 사용방법 (휴대폰) admin 2013-04-18 57456
28 Android 폰 에서 Sipdroid 설치 및 설정 전화걸기 사용방법 MVOIP admin 2012-08-12 52165
27 Acrobits 아이폰 용 sip 프로그램 Softphone 070인터넷전화 수신 잘되는 client 무료 admin 2014-06-02 39323
26 해외 로잉 무료 스마트폰 휴대폰 070 인터넷폰 인터넷전화 국내 해외 가입 상사 주재원 교민 유학생 여행 등 file admin 2015-02-28 37081
25 스마트폰 앱 및 인터넷전화 요금 휴대폰 45원/분 유선 35원 3분 admin 2013-02-07 33084
24 Third party open source sip stacks library for Android over B4A 오픈소스 라이브러리 admin 2013-09-23 31028
23 HD-Voice의 정체 admin 2014-10-09 29146
22 mVoIP 보다 VoLTE가 좋은 점 admin 2013-11-21 28314
21 Compiling linphone 3.7.0 on Debian Wheezy admin 2014-10-21 27725
20 opus-codec Opus Interactive Audio Codec admin 2014-10-10 27380
19 using a g729 codec in SipDroid Add G729 to Sipdroid admin 2014-12-28 26313
18 카카오톡PC에서 사용하는 오픈소스 라이브러리 admin 2017-12-01 18672
17 스마트폰 070 장점 국내전화 국제전화 로밍요금 해결 꼭 사용해보세요 admin 2018-01-07 16380
16 Pjsip 설명 정리 동작 함수 admin 2019-09-09 13919
15 mDNS 덕분에 SIP 네트워크 배포가 쉬워졌습니다. admin 2018-09-01 13640
14 Basic registration test sourec code admin 2019-05-06 13638
13 linphone-iphone IASKSettingsReader .plist-> locateSettingsFile -> setSettingsBundle save admin 2022-06-20 8638
12 linphone-iphone CallKit reportIncomingCall code analyze admin 2022-07-16 8558
11 linphone-iphone popup_password_request popup code analysis admin 2022-06-12 8528
10 linphone-iphone sourcecode SideMenuTableView code analysis admin 2022-06-16 8496
9 linphone-iphone SettingsView settingsStore removeAccount admin 2022-06-22 8485
8 linphone _MSFactory admin 2022-08-29 8479
7 linphone-iphone call number call button code analysis admin 2022-06-18 8437
6 linphone-iphone IASKSettingsReader IASKSpecifier code analysis admin 2022-06-19 8420